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