Archived
1
0
Fork 0

app/controllers/AuthController.php: in oauthAction() show a generic message on error and redirect to "/login" again instead of first page.

This commit is contained in:
Henrik Hautakoski 2018-02-25 20:02:10 +01:00
parent f42cb50a77
commit 3286ec8ec0

View file

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