Fixed displaying login errors

This commit is contained in:
Marcin Kurczewski 2014-05-04 13:40:33 +02:00
parent b0bbdde112
commit 4c66ca2b01

View file

@ -3,9 +3,6 @@ class AuthController
{ {
public function loginView() public function loginView()
{ {
$context = getContext();
$context->handleExceptions = true;
//check if already logged in //check if already logged in
if (Auth::isLoggedIn()) if (Auth::isLoggedIn())
self::redirect(); self::redirect();
@ -13,6 +10,10 @@ class AuthController
public function loginAction() public function loginAction()
{ {
$context = getContext();
$context->viewName = 'auth-login';
$context->handleExceptions = true;
$suppliedName = InputHelper::get('name'); $suppliedName = InputHelper::get('name');
$suppliedPassword = InputHelper::get('password'); $suppliedPassword = InputHelper::get('password');
$remember = boolval(InputHelper::get('remember')); $remember = boolval(InputHelper::get('remember'));