Skip to content

Commit

Permalink
fix(weixin): Fixed invalid extra_data
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu committed Mar 6, 2023
1 parent e1acb76 commit 3882c5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions allauth/socialaccount/providers/weixin/views.py
Expand Up @@ -30,6 +30,7 @@ def complete_login(self, request, app, token, **kwargs):
self.profile_url,
params={"access_token": token.token, "openid": openid},
)
resp.raise_for_status()
extra_data = resp.json()
nickname = extra_data.get("nickname")
if nickname:
Expand Down

0 comments on commit 3882c5f

Please sign in to comment.