From f337e63ef70f5f3210577e494e04acf642570ef9 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 25 Oct 2016 18:59:39 +0200 Subject: * clearing saved user auth key on logout --- app/frontend/user/AuthManager.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/frontend/user/AuthManager.php (limited to 'app/frontend/user/AuthManager.php') diff --git a/app/frontend/user/AuthManager.php b/app/frontend/user/AuthManager.php new file mode 100644 index 0000000..54f92e4 --- /dev/null +++ b/app/frontend/user/AuthManager.php @@ -0,0 +1,22 @@ +Application->Request->Cookies[$this->UserKey]; + if ($cookie) { + $user = $this->UserManager->getUserFromCookie($cookie); + if ($user && $user->Name === $this->Application->User->Name) { + UserFacade::getInstance()->clearUserAuthKey($user); + } + } + parent::logout(); + } + +} + +?> -- cgit v1.2.3