chore: use account_id instead of uuid
This commit is contained in:
parent
99f0f48fbc
commit
fb00547997
1 changed files with 2 additions and 4 deletions
|
@ -72,8 +72,8 @@ class Bitbucket extends OAuth
|
|||
{
|
||||
$user = $this->getUser($accessToken);
|
||||
|
||||
if (isset($user['uuid'])) {
|
||||
return $user['uuid'];
|
||||
if (isset($user['account_id'])) {
|
||||
return $user['account_id'];
|
||||
}
|
||||
|
||||
return '';
|
||||
|
@ -124,8 +124,6 @@ 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()
|
||||
}
|
||||
return $this->user;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue