fix: 修复登录失败日志的原因信息

v2.24 v2.24.2
Jiangjie.Bai 2022-08-08 15:43:00 +08:00 committed by Jiangjie.Bai
parent 07caaa5e46
commit b3cd9d50c9
1 changed files with 2 additions and 1 deletions

View File

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