mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: reverted back to UUID from account_id
This commit is contained in:
@@ -29,7 +29,7 @@ return [
|
||||
'instagram' => [
|
||||
'developers' => 'https://www.instagram.com/developer/',
|
||||
'icon' => 'icon-instagram',
|
||||
'enabled' => true,
|
||||
'enabled' => false,
|
||||
],
|
||||
'microsoft' => [
|
||||
'developers' => 'https://developer.microsoft.com/en-us/',
|
||||
|
||||
@@ -71,8 +71,8 @@ class Bitbucket extends OAuth
|
||||
{
|
||||
$user = $this->getUser($accessToken);
|
||||
|
||||
if (isset($user['account_id'])) {
|
||||
return $user['account_id'];
|
||||
if (isset($user['uuid'])) {
|
||||
return $user['uuid'];
|
||||
}
|
||||
|
||||
return '';
|
||||
@@ -123,6 +123,9 @@ class Bitbucket extends OAuth
|
||||
|
||||
$email = $this->request('GET', 'https://api.bitbucket.org/2.0/user/emails?access_token='.urlencode($accessToken));
|
||||
$this->user['email'] = json_decode($email, true)['values'][0]['email'];
|
||||
|
||||
// var_dump($user);
|
||||
// exit();
|
||||
}
|
||||
return $this->user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user