mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: edge cases
This commit is contained in:
1 parent
e94631f730
commit
c4e82e4191
3 files changed
+14
-7
No files matched your search
@@ -340,7 +340,8 @@ class Auth
|
||||
if (
|
||||
$token->isSet('secret') &&
|
||||
$token->isSet('expire') &&
|
||||
($type === null || $token->isSet('type') && $token->getAttribute('type') === $type) &&
|
||||
$token->isSet('type') &&
|
||||
($type === null || $token->getAttribute('type') === $type) &&
|
||||
$token->getAttribute('secret') === self::hash($secret) &&
|
||||
DateTime::formatTz($token->getAttribute('expire')) >= DateTime::formatTz(DateTime::now())
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user