From 773bf36733cd217f257f3a5734a6e69353911a01 Mon Sep 17 00:00:00 2001 From: Dj Padzensky Date: Fri, 12 Feb 2016 15:56:13 -0800 Subject: Added a DISABLE_LOGOUT constant, to allow the logout command to be disabled, for support of external SSO solutions. --- app/Controller/Auth.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'app/Controller/Auth.php') 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')); + } } /** -- cgit v1.2.3