From 18544428a0cd56436cff7a2a198926f6cab23c5f Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Thu, 22 Jun 2023 17:43:08 -0700 Subject: [PATCH] Fix logic for isAnonymousUser() --- src/Appwrite/Auth/Auth.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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')); } }