diff options
Diffstat (limited to 'apps/federation/api/ocsauthapi.php')
-rw-r--r-- | apps/federation/api/ocsauthapi.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federation/api/ocsauthapi.php b/apps/federation/api/ocsauthapi.php index 42d7113820d..d165a0bd22f 100644 --- a/apps/federation/api/ocsauthapi.php +++ b/apps/federation/api/ocsauthapi.php @@ -139,7 +139,7 @@ class OCSAuthAPI { protected function isValidToken($url, $token) { $storedToken = $this->dbHandler->getToken($url); - return StringUtils::equals($storedToken, $token); + return hash_equals($storedToken, $token); } } |