mirror of https://github.com/jumpserver/jumpserver
parent
a7fed21819
commit
9058a79c5c
|
@ -32,13 +32,13 @@ def check_only_allow_exist_user_auth(created):
|
||||||
|
|
||||||
|
|
||||||
def user_authenticated_handle(user, created, source, attrs=None, **kwargs):
|
def user_authenticated_handle(user, created, source, attrs=None, **kwargs):
|
||||||
if not check_only_allow_exist_user_auth(created):
|
|
||||||
return
|
|
||||||
|
|
||||||
if created:
|
if created:
|
||||||
user.source = source
|
user.source = source
|
||||||
user.save()
|
user.save()
|
||||||
|
|
||||||
|
if not check_only_allow_exist_user_auth(created):
|
||||||
|
return
|
||||||
|
|
||||||
if not attrs:
|
if not attrs:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue