perf: Third-party user login failed

This commit is contained in:
feng 2024-09-12 10:19:40 +08:00
parent ab529fd22c
commit b00f3a851c

View File

@ -52,6 +52,8 @@ def user_authenticated_handle(user, created, source, attrs=None, **kwargs):
if created:
user.source = source
user.save()
if created and isinstance(attrs, dict):
org_ids = bind_user_to_org_role(user)
group_names = attrs.get('groups')
bind_user_to_group(org_ids, group_names, user)