From 5b92f35fe20bc82fda9548e35675dca7dec6659d Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 27 May 2020 09:58:44 +0200 Subject: [PATCH] Log why a token is not valid during password check Signed-off-by: Christoph Wurst --- lib/private/User/Session.php | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.39.5