Fix #21 typo in method name
This commit is contained in:
parent
10df7c043d
commit
b3d7e5e628
|
@ -515,7 +515,7 @@ class Storage extends AbstractStorage
|
|||
$ttl = time()+(3600*10);
|
||||
|
||||
// Use the user password as a server secret
|
||||
$check = WebDAV::hash(compact('ttl', 'uri'), $user->password);
|
||||
$check = WebDAV::hmac(compact('ttl', 'uri'), $user->password);
|
||||
$data = sprintf('%s_%s_%s', $check, $ttl, $user->login);
|
||||
|
||||
return [
|
||||
|
@ -543,7 +543,7 @@ class Storage extends AbstractStorage
|
|||
|
||||
$user = $this->users->current();
|
||||
|
||||
$check = WebDAV::hash(compact('ttl', 'uri'), $user->password);
|
||||
$check = WebDAV::hmac(compact('ttl', 'uri'), $user->password);
|
||||
|
||||
if (!hash_equals($check, $hash)) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue