diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-13 10:49:22 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-13 10:49:22 -0500 |
commit | 1e3429b54b7a49c03c29ad6486b02830b96c9324 (patch) | |
tree | 58f1d7a3b9e8800168a01deedd79953b82a5c3e1 /app/Controller/Auth.php | |
parent | 3446d2a4c291e16c4d5f099fafb516ae391941f5 (diff) | |
parent | 773bf36733cd217f257f3a5734a6e69353911a01 (diff) |
Merge pull-request #1835
Diffstat (limited to 'app/Controller/Auth.php')
-rw-r--r-- | app/Controller/Auth.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/Controller/Auth.php b/app/Controller/Auth.php index fef7f0e3..b98dff5d 100644 --- a/app/Controller/Auth.php +++ b/app/Controller/Auth.php @@ -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')); + } } /** |