From b3cd9d50c91c060e8484b971e61f66d918c4e661 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Mon, 8 Aug 2022 15:43:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=97=A5=E5=BF=97=E7=9A=84=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/errors/failed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/authentication/errors/failed.py b/apps/authentication/errors/failed.py index 93efebf78..ec43d1b73 100644 --- a/apps/authentication/errors/failed.py +++ b/apps/authentication/errors/failed.py @@ -12,12 +12,13 @@ class AuthFailedNeedLogMixin: username = '' request = None error = '' + msg = '' def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) post_auth_failed.send( sender=self.__class__, username=self.username, - request=self.request, reason=self.error + request=self.request, reason=self.msg )