diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-06 14:55:45 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-06 14:55:45 -0500 |
commit | 8f6c064cd7652635751c91283f6b35f652f52885 (patch) | |
tree | 4a74da658e5cd553d023a55bf954331d1acddb86 | |
parent | 70c65268fe017014b97dbc18e02588b8ed1d9a19 (diff) |
Add debug log for session invalidation
-rw-r--r-- | app/Core/Security/AuthenticationManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Core/Security/AuthenticationManager.php b/app/Core/Security/AuthenticationManager.php index 8e5f76be..b1ba76cf 100644 --- a/app/Core/Security/AuthenticationManager.php +++ b/app/Core/Security/AuthenticationManager.php @@ -68,9 +68,10 @@ class AuthenticationManager extends Base */ public function checkCurrentSession() { - if ($this->userSession->isLogged() ) { + if ($this->userSession->isLogged()) { foreach ($this->filterProviders('SessionCheckProviderInterface') as $provider) { if (! $provider->isValidSession()) { + $this->logger->debug('Invalidate session for '.$this->userSession->getUsername()); $this->sessionStorage->flush(); $this->preAuthentication(); return false; |