Added a DISABLE_LOGOUT constant, to allow the logout command to be disabled, for support of external SSO solutions.
This commit is contained in:
@@ -55,8 +55,13 @@ class Auth extends Base
|
||||
*/
|
||||
public function logout()
|
||||
{
|
||||
$this->sessionManager->close();
|
||||
$this->response->redirect($this->helper->url->to('auth', 'login'));
|
||||
if (! DISABLE_LOGOUT) {
|
||||
$this->sessionManager->close();
|
||||
$this->response->redirect($this->helper->url->to('auth', 'login'));
|
||||
}
|
||||
else {
|
||||
$this->response->redirect($this->helper->url->to('auth', 'index'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user