diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-05-27 09:58:44 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-05-27 09:58:44 +0200 |
commit | 5b92f35fe20bc82fda9548e35675dca7dec6659d (patch) | |
tree | 7af2546084046ff4bff92db3d2f85d97a6d43951 | |
parent | 2006a6dd0e568998965246263b142613660c5baf (diff) | |
download | nextcloud-server-5b92f35fe20bc82fda9548e35675dca7dec6659d.tar.gz nextcloud-server-5b92f35fe20bc82fda9548e35675dca7dec6659d.zip |
Log why a token is not valid during password check
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | lib/private/User/Session.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 817dcbf4c33..3996869c692 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -531,6 +531,10 @@ class Session implements IUserSession, Emitter { } catch (ExpiredTokenException $e) { throw $e; } catch (InvalidTokenException $ex) { + $this->logger->logException($ex, [ + 'level' => ILogger::DEBUG, + 'message' => 'Token is not valid: ' . $ex->getMessage(), + ]); return false; } } |