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:
parent
f42cb50a77
commit
3286ec8ec0
1 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,9 @@ class AuthController extends ControllerBase
|
||||||
if (is_array($response)) {
|
if (is_array($response)) {
|
||||||
$this->auth->loginOauth($response['auth']);
|
$this->auth->loginOauth($response['auth']);
|
||||||
}
|
}
|
||||||
$this->response->redirect('/');
|
|
||||||
|
$this->flash->message('error', 'Failed to authenticate.');
|
||||||
|
$this->response->redirect('/login');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function logoutAction()
|
public function logoutAction()
|
||||||
|
|
|
||||||
Reference in a new issue