mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-10 05:13:44 +00:00
[Bugfix] 修改BlockLoginError的msg值在初始化中设置(数据表没生成之前启动会有问题)
This commit is contained in:
parent
ce3cc80037
commit
8702761303
@ -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
Block a user