mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: email verified false on null
This commit is contained in:
1 parent
3e0f63e499
commit
acebe54e5e
1 file changed
+5
-1
@@ -149,7 +149,11 @@ class Zoho extends OAuth2
|
||||
*/
|
||||
public function isEmailVerified(string $accessToken): bool
|
||||
{
|
||||
return $this->user['email_verified'] ?? '';
|
||||
if ($this->user['email_verified'] ?? false) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user