mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
feat: update stripe OAuth provider
This commit is contained in:
@@ -141,13 +141,9 @@ class Slack extends OAuth2
|
||||
*/
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
$user = $this->getUser($accessToken);
|
||||
$email = $this->getUserEmail($accessToken);
|
||||
|
||||
if (isset($user['user']['email'])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return !empty($email);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -144,13 +144,16 @@ class Stripe extends OAuth2
|
||||
/**
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* Stripe emails if present are verfied.
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
$email = $this->getUserEmail($accessToken);
|
||||
return !empty($email);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user