Log why a token is not valid during password check
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
2006a6dd0e
commit
5b92f35fe2
|
@ -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…
Reference in New Issue