Bug fix OAuth
This commit is contained in:
parent
f5efbf1d85
commit
57e2f46d77
3
app.py
3
app.py
|
@ -245,7 +245,8 @@ def get_username():
|
||||||
return session['username']
|
return session['username']
|
||||||
|
|
||||||
params = {'action': 'query', 'meta': 'userinfo', 'format': 'json'}
|
params = {'action': 'query', 'meta': 'userinfo', 'format': 'json'}
|
||||||
session['username'] = oauth_api_request(params)['query']['userinfo']['name']
|
r = oauth_api_request(params)
|
||||||
|
session['username'] = r.json()['query']['userinfo']['name']
|
||||||
|
|
||||||
return session['username']
|
return session['username']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue