fix: 修复三方用户登录登录限制提示错误问题 (#10475)

Co-authored-by: feng <1304903146@qq.com>
pull/10477/head
fit2bot 2023-05-17 11:11:39 +08:00 committed by GitHub
parent a7fed21819
commit 9058a79c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -32,13 +32,13 @@ def check_only_allow_exist_user_auth(created):
def user_authenticated_handle(user, created, source, attrs=None, **kwargs):
if not check_only_allow_exist_user_auth(created):
return
if created:
user.source = source
user.save()
if not check_only_allow_exist_user_auth(created):
return
if not attrs:
return