Fix bitbucket login

This commit is contained in:
Jarka Kadlecova 2017-10-26 13:59:28 +03:00
parent 3ddffec0d6
commit 7d8eb4ddb0
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
title: Fix bitbucket login
merge_request: 15051
author:
type: fixed

View File

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