From 3286ec8ec063528201b6b88daabf1634f1ed1a77 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 25 Feb 2018 20:02:10 +0100 Subject: [PATCH] app/controllers/AuthController.php: in oauthAction() show a generic message on error and redirect to "/login" again instead of first page. --- app/controllers/AuthController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/AuthController.php b/app/controllers/AuthController.php index 0270619..b356b31 100644 --- a/app/controllers/AuthController.php +++ b/app/controllers/AuthController.php @@ -41,7 +41,9 @@ class AuthController extends ControllerBase if (is_array($response)) { $this->auth->loginOauth($response['auth']); } - $this->response->redirect('/'); + + $this->flash->message('error', 'Failed to authenticate.'); + $this->response->redirect('/login'); } public function logoutAction()