Fix copy/paste error

This commit is contained in:
Magnus Hagander
2020-01-04 20:31:29 +01:00
parent a91c267ec1
commit a5d6fabe09

View File

@ -241,7 +241,7 @@ def oauth_login_microsoft(request):
def _microsoft_auth_data(oa):
r = oa.get("https://apis.live.net/v5.0/me").json()
if 'emails' not in r or 'account' not in r['emails']:
raise OAuthException("Your Facebook profile must provide an email address in order to log in")
raise OAuthException("Your MicrosoftFacebook profile must provide an email address in order to log in")
return (r['emails']['account'],
r.get('first_name', ''),