Fixed displaying login errors
This commit is contained in:
parent
b0bbdde112
commit
4c66ca2b01
1 changed files with 4 additions and 3 deletions
|
@ -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'));
|
||||||
|
|
Loading…
Reference in a new issue