summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-05-13 09:53:50 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-05-13 09:53:50 +0200
commited01305e292d3591dc486dc5a38fa8506bbf00ff (patch)
tree9bcdbb749b9d278910cc24f9e5e1d876d2c7907f /lib/private
parentcba4875e4dabc2f486bc776e3a5b4985d207fc90 (diff)
downloadnextcloud-server-ed01305e292d3591dc486dc5a38fa8506bbf00ff.tar.gz
nextcloud-server-ed01305e292d3591dc486dc5a38fa8506bbf00ff.zip
don't spam the log file with failed token validation entries
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Authentication/Token/DefaultTokenProvider.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/Authentication/Token/DefaultTokenProvider.php b/lib/private/Authentication/Token/DefaultTokenProvider.php
index a6641277cf9..deca5b409e8 100644
--- a/lib/private/Authentication/Token/DefaultTokenProvider.php
+++ b/lib/private/Authentication/Token/DefaultTokenProvider.php
@@ -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();
}
}