diff --git a/apps/users/signal_handlers.py b/apps/users/signal_handlers.py index b566a600a..7b2d3012f 100644 --- a/apps/users/signal_handlers.py +++ b/apps/users/signal_handlers.py @@ -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