Merge pull request #24614 from owncloud/token-validation-log
don't spam the log file with failed token validation entries
This commit is contained in:
commit
6938904b07
|
@ -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 New Issue