mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
don't spam the log file with failed token validation entries
This commit is contained in:
parent
cba4875e4d
commit
ed01305e29
1 changed files with 1 additions and 3 deletions
|
|
@ -148,13 +148,11 @@ class DefaultTokenProvider implements IProvider {
|
|||
* @return DefaultToken user UID
|
||||
*/
|
||||
public function validateToken($token) {
|
||||
$this->logger->debug('validating default token <' . $token . '>');
|
||||
try {
|
||||
$dbToken = $this->mapper->getToken($this->hashToken($token));
|
||||
$this->logger->debug('valid token for ' . $dbToken->getUID());
|
||||
$this->logger->debug('valid default token for ' . $dbToken->getUID());
|
||||
return $dbToken;
|
||||
} catch (DoesNotExistException $ex) {
|
||||
$this->logger->warning('invalid token');
|
||||
throw new InvalidTokenException();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue