allauth_authentic2: cast app_settings.VERIFY to bool

This commit is contained in:
Benjamin Dauvergne 2014-05-22 19:16:29 +02:00
parent 7fba45e625
commit b2dbc03414
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class Authentic2OAuth2Adapter(OAuth2Adapter):
def complete_login(self, request, app, token, **kwargs):
resp = requests.get(self.profile_url,
headers={'authorization': 'Bearer %s' % token.token},
verify=app_settings.VERIFY)
verify=bool(app_settings.VERIFY))
extra_data = resp.json()
log.debug('received profile data: %r', extra_data)
return self.get_provider().sociallogin_from_response(request,