From fb00547997451c702121751bcd887361337664a8 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 1 Oct 2019 14:37:57 +0530 Subject: [PATCH] chore: use account_id instead of uuid --- src/Auth/OAuth/Bitbucket.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Auth/OAuth/Bitbucket.php b/src/Auth/OAuth/Bitbucket.php index 796629b67c..65c32ee8c1 100644 --- a/src/Auth/OAuth/Bitbucket.php +++ b/src/Auth/OAuth/Bitbucket.php @@ -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; }