1
0
Fork 0
mirror of synced 2024-09-28 23:41:23 +12:00

chore: use account_id instead of uuid

This commit is contained in:
Christy Jacob 2019-10-01 14:37:57 +05:30
parent 99f0f48fbc
commit fb00547997

View file

@ -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;
}