Archived
1
0
Fork 0

app/controllers/AuthController.php: in oauthAction() do not show error message when in fact oauth succeeded.

This commit is contained in:
Henrik Hautakoski 2018-04-05 19:06:06 +02:00
parent cf42203329
commit 08ad47caf7

View file

@ -46,11 +46,12 @@ 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('/');
} else {
$this->flash->message('error', 'Failed to authenticate.'); $this->flash->message('error', 'Failed to authenticate.');
$this->response->redirect('/login'); $this->response->redirect('/login');
} }
}
public function logoutAction() public function logoutAction()
{ {