mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Fix string vs variable in uncommon codepath
This commit is contained in:
@ -169,7 +169,7 @@ def oauth_login_facebook(request):
|
|||||||
def oauth_login_microsoft(request):
|
def oauth_login_microsoft(request):
|
||||||
def _microsoft_auth_data(oa):
|
def _microsoft_auth_data(oa):
|
||||||
r = oa.get("https://apis.live.net/v5.0/me").json()
|
r = oa.get("https://apis.live.net/v5.0/me").json()
|
||||||
if not 'emails' in r or not account in r['emails']:
|
if not 'emails' in r or not 'account' in r['emails']:
|
||||||
raise OAuthException("Your Facebook profile must provide an email address in order to log in")
|
raise OAuthException("Your Facebook profile must provide an email address in order to log in")
|
||||||
|
|
||||||
return (r['emails']['account'],
|
return (r['emails']['account'],
|
||||||
|
Reference in New Issue
Block a user