Use json method
Use json method of response.Response
This commit is contained in:
parent
b2971ec68c
commit
f0f6545374
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def login_handler():
|
||||||
'audience': request.host_url,
|
'audience': request.host_url,
|
||||||
}, verify=True)
|
}, verify=True)
|
||||||
if resp.ok:
|
if resp.ok:
|
||||||
verification_data = json.loads(resp.content)
|
verification_data = resp.json()
|
||||||
if verification_data['status'] == 'okay':
|
if verification_data['status'] == 'okay':
|
||||||
session['email'] = verification_data['email']
|
session['email'] = verification_data['email']
|
||||||
return 'OK'
|
return 'OK'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue