From 9058a79c5c4f532c21b53afdfdd637aea918be34 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 17 May 2023 11:11:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=E7=99=BB=E5=BD=95=E9=99=90?= =?UTF-8?q?=E5=88=B6=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#10475)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/users/signal_handlers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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