app/controllers/AuthController.php: in oauthAction() do not show error message when in fact oauth succeeded.
This commit is contained in:
parent
cf42203329
commit
08ad47caf7
1 changed files with 4 additions and 3 deletions
|
|
@ -46,10 +46,11 @@ class AuthController extends ControllerBase
|
|||
|
||||
if (is_array($response)) {
|
||||
$this->auth->loginOauth($response['auth']);
|
||||
$this->response->redirect('/');
|
||||
} else {
|
||||
$this->flash->message('error', 'Failed to authenticate.');
|
||||
$this->response->redirect('/login');
|
||||
}
|
||||
|
||||
$this->flash->message('error', 'Failed to authenticate.');
|
||||
$this->response->redirect('/login');
|
||||
}
|
||||
|
||||
public function logoutAction()
|
||||
|
|
|
|||
Reference in a new issue