From dfc18e0f952af17dc46180bbfb538e70ea856c61 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 12 Feb 2015 09:07:10 +0100 Subject: [PATCH] Display authentication exceptions as form errors --- application/controllers/AuthenticationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/AuthenticationController.php b/application/controllers/AuthenticationController.php index 118a953a9..933a97357 100644 --- a/application/controllers/AuthenticationController.php +++ b/application/controllers/AuthenticationController.php @@ -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();