mirror of https://github.com/jumpserver/jumpserver
Merge pull request #3586 from jumpserver/dev_bai
[Bugfix] 修改BlockLoginError的msg值在初始化中设置(数据表没生成之前启动会有问题)pull/3591/head
commit
1d7bdd5f5f
|
@ -118,9 +118,9 @@ class MFAFailedError(AuthFailedNeedLogMixin, AuthFailedError):
|
|||
|
||||
class BlockLoginError(AuthFailedNeedBlockMixin, AuthFailedError):
|
||||
error = 'block_login'
|
||||
msg = block_login_msg.format(settings.SECURITY_LOGIN_LIMIT_TIME)
|
||||
|
||||
def __init__(self, username, ip):
|
||||
self.msg = block_login_msg.format(settings.SECURITY_LOGIN_LIMIT_TIME)
|
||||
super().__init__(username=username, ip=ip)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue