Browse Source

Merge pull request #14126 from jumpserver/pr@dev@third_party_user_login_failed

perf: Third-party user login failed
pull/14127/head
ZhaoJiSen 2 months ago committed by GitHub
parent
commit
e319f20296
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/users/signal_handlers.py

2
apps/users/signal_handlers.py

@ -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)

Loading…
Cancel
Save