fix: reverted back to UUID from account_id

This commit is contained in:
Christy Jacob
2019-10-01 21:02:20 +05:30
parent c024921369
commit 18e164608b
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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/',
+5 -2
View File
@@ -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;
}
View File