diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-13 09:59:27 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-13 09:59:27 -0700 |
| commit | 938eea7fc45d5ad26529a14f349b7e4be2fecb15 (patch) | |
| tree | 903f5fd467565b16e7e65d84101060920b1449b7 /modules/gallery/controllers/login.php | |
| parent | 0ebc36b4e5ef5578791c00b8a64021d3aad96068 (diff) | |
| parent | 87f8b6ff0a76f51183f14515723a8345f7c14fa6 (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/controllers/login.php')
| -rw-r--r-- | modules/gallery/controllers/login.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/gallery/controllers/login.php b/modules/gallery/controllers/login.php index 40125476..2b60316b 100644 --- a/modules/gallery/controllers/login.php +++ b/modules/gallery/controllers/login.php @@ -38,15 +38,18 @@ class Login_Controller extends Controller { } public function html() { - print auth::get_login_form("login/auth_html"); + $view = new Theme_View("page.html", "other", "login"); + $view->page_title = t("Login"); + $view->content = auth::get_login_form("login/auth_html"); + print $view; } public function auth_html() { access::verify_csrf(); - $continue_url = Session::instance()->get("continue_url", null); list ($valid, $form) = $this->_auth("login/auth_html"); if ($valid) { + $continue_url = $form->continue_url->value; url::redirect($continue_url ? $continue_url : item::root()->abs_url()); } else { $view = new Theme_View("page.html", "other", "login"); |
