diff options
author | Andy Lindeman <alindeman@gmail.com> | 2011-04-03 15:44:28 -0500 |
---|---|---|
committer | Andy Lindeman <alindeman@gmail.com> | 2011-04-03 15:47:46 -0500 |
commit | 1d0f4b7a430e6c7d8d715a42fb391b8e1afbdf19 (patch) | |
tree | 5339e55a9f4d19a27d83f04cc06a40d65fc90405 | |
parent | e89b0b867c2354fe56818878026e7f1f5df00f4e (diff) |
[Fixes #1574] Render the login form in the same way in every action
This makes sure the "Forgot Your Password?" link appears when the HTML form
is initially rendered.
-rw-r--r-- | modules/gallery/controllers/login.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/controllers/login.php b/modules/gallery/controllers/login.php index b203b7d3..fdf5d7b7 100644 --- a/modules/gallery/controllers/login.php +++ b/modules/gallery/controllers/login.php @@ -42,8 +42,9 @@ class Login_Controller extends Controller { public function html() { $view = new Theme_View("page.html", "other", "login"); - $view->page_title = t("Login"); - $view->content = auth::get_login_form("login/auth_html"); + $view->page_title = t("Log in to Gallery"); + $view->content = new View("login_ajax.html"); + $view->content->form = auth::get_login_form("login/auth_html"); print $view; } |