mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-05 23:54:18 +00:00
perf: 优化忘记密码
This commit is contained in:
@@ -36,3 +36,11 @@ class FeiShuNotBound(JMSException):
|
||||
class PasswordInvalid(JMSException):
|
||||
default_code = 'passwd_invalid'
|
||||
default_detail = _('Your password is invalid')
|
||||
|
||||
|
||||
class IntervalTooShort(JMSException):
|
||||
default_code = 'interval_too_short'
|
||||
default_detail = _('Please wait for %s seconds before retry')
|
||||
|
||||
def __init__(self, interval, *args, **kwargs):
|
||||
super().__init__(detail=self.default_detail % interval, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user