feat: 添加短信服务和用户消息通知

This commit is contained in:
xinwen
2021-08-24 14:20:54 +08:00
parent d49d1e1414
commit b1fceca8a6
57 changed files with 1442 additions and 296 deletions

View File

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