Skip to content

Commit

Permalink
Merge eb70ef8 into 75ae1e5
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed May 24, 2016
2 parents 75ae1e5 + eb70ef8 commit 153f41c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions allauth/socialaccount/providers/bitbucket_oauth2/views.py
Expand Up @@ -20,6 +20,8 @@ def complete_login(self, request, app, token, **kwargs):
extra_data = resp.json()
if app_settings.QUERY_EMAIL and not extra_data.get('email'):
extra_data['email'] = self.get_email(token)
if 'response' in kwargs and 'refresh_token' in kwargs['response']:
extra_data['refresh_token'] = kwargs['response']['refresh_token']
return self.get_provider().sociallogin_from_response(request,
extra_data)

Expand Down

0 comments on commit 153f41c

Please sign in to comment.