Browse Source

Use json method

Use json method of response.Response
pull/945/head
Tommaso Allevi 11 years ago
parent
commit
f0f6545374
  1. 2
      examples/persona/persona.py

2
examples/persona/persona.py

@ -38,7 +38,7 @@ def login_handler():
'audience': request.host_url,
}, verify=True)
if resp.ok:
verification_data = json.loads(resp.content)
verification_data = resp.json()
if verification_data['status'] == 'okay':
session['email'] = verification_data['email']
return 'OK'

Loading…
Cancel
Save