From 4c66ca2b014b1712bfb2535096dbbf57ec537a91 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 4 May 2014 13:40:33 +0200 Subject: [PATCH] Fixed displaying login errors --- src/Controllers/AuthController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Controllers/AuthController.php b/src/Controllers/AuthController.php index 518c62d5..27fd9ff6 100644 --- a/src/Controllers/AuthController.php +++ b/src/Controllers/AuthController.php @@ -3,9 +3,6 @@ class AuthController { public function loginView() { - $context = getContext(); - $context->handleExceptions = true; - //check if already logged in if (Auth::isLoggedIn()) self::redirect(); @@ -13,6 +10,10 @@ class AuthController public function loginAction() { + $context = getContext(); + $context->viewName = 'auth-login'; + $context->handleExceptions = true; + $suppliedName = InputHelper::get('name'); $suppliedPassword = InputHelper::get('password'); $remember = boolval(InputHelper::get('remember'));