allauth_authentic2: cast app_settings.VERIFY to bool
This commit is contained in:
parent
7fba45e625
commit
b2dbc03414
|
@ -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,
|
||||
|
|
Reference in New Issue