We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa74af commit 85c16deCopy full SHA for 85c16de
backend/app/admin/service/oauth2_service.py
@@ -49,7 +49,7 @@ async def create_with_login(
49
await db.flush()
50
sys_user = await user_dao.check_email(db, _email)
51
# 绑定社交用户
52
- user_social = await user_social_dao.get(db, sys_user.id, UserSocialType.github)
+ user_social = await user_social_dao.get(db, sys_user.id, social.value)
53
if not user_social:
54
new_user_social = CreateUserSocialParam(source=social.value, uid=str(_id), user_id=sys_user.id)
55
await user_social_dao.create(db, new_user_social)
0 commit comments