mirror of
https://github.com/appwrite/appwrite
synced 2026-05-05 22:38:37 +00:00
fix token verify
This commit is contained in:
parent
b3df65cf33
commit
c8e6fcc090
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ class User extends Document
|
|||
$token->isSet('expire') &&
|
||||
$token->isSet('type') &&
|
||||
($type === null || $token->getAttribute('type') === $type) &&
|
||||
$proofForToken->verify($secret, $token->getAttribute('secret')) &&
|
||||
$proofForToken->verify($proofForToken->hash($secret), $token->getAttribute('secret')) &&
|
||||
DateTime::formatTz($token->getAttribute('expire')) >= DateTime::formatTz(DateTime::now())
|
||||
) {
|
||||
return $token;
|
||||
|
|
|
|||
Loading…
Reference in a new issue