Merge branch '39495-fix-bitbucket-login' into 'master'
Fix bitbucket login Closes #39495 See merge request gitlab-org/gitlab-ce!15051
This commit is contained in:
commit
a1aa4f00c2
2 changed files with 9 additions and 0 deletions
5
changelogs/unreleased/39495-fix-bitbucket-login.yml
Normal file
5
changelogs/unreleased/39495-fix-bitbucket-login.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Fix bitbucket login
|
||||
merge_request: 15051
|
||||
author:
|
||||
type: fixed
|
|
@ -36,6 +36,10 @@ module OmniAuth
|
|||
email_response = access_token.get('api/2.0/user/emails').parsed
|
||||
@emails ||= email_response && email_response['values'] || nil
|
||||
end
|
||||
|
||||
def callback_url
|
||||
options[:redirect_uri] || (full_host + script_name + callback_path)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue