don't spam the log file with failed token validation entries

This commit is contained in:
Christoph Wurst 2016-05-13 09:53:50 +02:00
parent cba4875e4d
commit ed01305e29
No known key found for this signature in database
GPG key ID: FEECD2543CA6EAF0

View file

@ -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();
}
}