Modalise login

This commit is contained in:
Deon George
2013-05-16 21:50:30 +10:00
parent c56742d127
commit 84a7752ef2
4 changed files with 25 additions and 9 deletions

View File

@@ -72,21 +72,20 @@ class Controller_Login extends lnApp_Controller_Login {
// Show our token screen even if the email was invalid.
if (isset($_POST['username']))
Block::factory()
->body(View::factory('pages/login_reset_sent'));
$output = View::factory('pages/login_reset_sent');
else
HTTP::redirect('login');
} else {
Block::factory()
->body(View::factory('pages/login_reset'));
$output = View::factory('pages/login_reset');
}
Style::factory()
->type('file')
->data('media/theme/baseadmin/css/pages/login.css');
$this->template->content = $output;
$this->template->shownavbar = FALSE;
}
}