mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Fix logic for isAnonymousUser()
This commit is contained in:
parent
6db141acc9
commit
18544428a0
1 changed files with 2 additions and 3 deletions
|
|
@ -461,8 +461,7 @@ class Auth
|
|||
|
||||
public static function isAnonymousUser(Document $user): bool
|
||||
{
|
||||
return (is_null($user->getAttribute('email'))
|
||||
|| is_null($user->getAttribute('phone'))
|
||||
) && is_null($user->getAttribute('password'));
|
||||
return is_null($user->getAttribute('email'))
|
||||
&& is_null($user->getAttribute('phone'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue