]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log why a token is not valid during password check 21122/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 27 May 2020 07:58:44 +0000 (09:58 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 27 May 2020 07:58:44 +0000 (09:58 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/User/Session.php

index 817dcbf4c334d7906ecd90b8377b625aec106952..3996869c692910fa92932f8afdec38e897d5917a 100644 (file)
@@ -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;
                }
        }