mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-11 04:09:45 +00:00
perf: 支持自定义短信认证
This commit is contained in:
committed by
Jiangjie.Bai
parent
5e7d474bb7
commit
20cc4ea320
@@ -100,7 +100,10 @@ class UserTokenResetPasswordForm(forms.Form):
|
||||
|
||||
class UserForgotPasswordForm(forms.Form):
|
||||
email = forms.CharField(label=_("Email"), required=False)
|
||||
sms = forms.CharField(label=_('SMS'), required=False, max_length=11)
|
||||
sms = forms.CharField(
|
||||
label=_('SMS'), required=False,
|
||||
help_text=_('The phone number must contain an area code, for example, +86')
|
||||
)
|
||||
code = forms.CharField(label=_('Verify code'), max_length=6, required=False)
|
||||
form_type = forms.ChoiceField(
|
||||
choices=[('sms', _('SMS')), ('email', _('Email'))],
|
||||
|
Reference in New Issue
Block a user