mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 01:40:52 +00:00
feat: 添加短信服务和用户消息通知
This commit is contained in:
@@ -8,3 +8,13 @@ class MFANotEnabled(JMSException):
|
||||
status_code = status.HTTP_403_FORBIDDEN
|
||||
default_code = 'mfa_not_enabled'
|
||||
default_detail = _('MFA not enabled')
|
||||
|
||||
|
||||
class PhoneNotSet(JMSException):
|
||||
default_code = 'phone_not_set'
|
||||
default_detail = _('Phone not set')
|
||||
|
||||
|
||||
class MFAMethodNotSupport(JMSException):
|
||||
default_code = 'mfa_not_support'
|
||||
default_detail = _('MFA method not support')
|
||||
|
Reference in New Issue
Block a user