Display authentication exceptions as form errors

This commit is contained in:
Johannes Meyer 2015-02-12 09:07:10 +01:00
parent 9e933d835d
commit dfc18e0f95
1 changed files with 1 additions and 1 deletions

View File

@ -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();