summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorDj Padzensky <djpadz@padz.net>2016-02-12 15:56:13 -0800
committerDj Padzensky <djpadz@padz.net>2016-02-12 15:56:13 -0800
commit773bf36733cd217f257f3a5734a6e69353911a01 (patch)
tree8b3f0e87f3006c563cc1d6fdea414dfba76a700d /app/Controller
parent77ae92b09baacecaad3450ba06f40c8df76a7a19 (diff)
Added a DISABLE_LOGOUT constant, to allow the logout command to be disabled, for support of external SSO solutions.
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Auth.php9
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'));
+ }
}
/**