Display authentication exceptions as form errors
This commit is contained in:
parent
9e933d835d
commit
dfc18e0f95
|
@ -141,7 +141,7 @@ class AuthenticationController extends ActionController
|
|||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$this->view->errorInfo = $e->getMessage();
|
||||
$this->view->form->addError($e->getMessage());
|
||||
}
|
||||
|
||||
$this->view->requiresExternalAuth = $triedOnlyExternalAuth && !$auth->isAuthenticated();
|
||||
|
|
Loading…
Reference in New Issue