Log why a token is not valid during password check

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/21122/head
Christoph Wurst 6 years ago
parent 2006a6dd0e
commit 5b92f35fe2
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
  1. 4
      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;
}
}

Loading…
Cancel
Save