If the userid/password combination, render the full page instead of just printing the form. Fixes ticket #980.

This commit is contained in:
Tim Almdal
2010-01-22 18:12:30 -08:00
parent ff5ccf0fb3
commit ece403877f
+5 -1
View File
@@ -50,7 +50,11 @@ class Login_Controller extends Controller {
if ($valid) {
url::redirect(item::root()->abs_url());
} else {
print $form;
$view = new Theme_View("page.html", "other", "login");
$view->page_title = t("Log in to Gallery");
$view->content = new View("login_ajax.html");
$view->content->form = $form;
print $view;
}
}