diff --git a/src/Appwrite/Auth/Auth.php b/src/Appwrite/Auth/Auth.php index 7217a87680..4e07b711cf 100644 --- a/src/Appwrite/Auth/Auth.php +++ b/src/Appwrite/Auth/Auth.php @@ -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')); } }