fix: 忘记密码短信验证码过期

This commit is contained in:
wangruidong
2024-04-09 16:08:47 +08:00
committed by Bryan
parent 79f8480ae4
commit 1e0ea3905e
3 changed files with 5 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ from common.utils import validate_ssh_public_key
from authentication.forms import EncryptedField, CaptchaMixin
from ..models import User
__all__ = [
'UserProfileForm', 'UserMFAForm', 'UserFirstLoginFinishForm',
'UserPasswordForm', 'UserPublicKeyForm', 'FileForm',
@@ -45,7 +44,6 @@ UserProfileForm.verbose_name = _("Profile")
class UserMFAForm(forms.ModelForm):
mfa_description = _(
'When enabled, '
'you will enter the MFA binding process the next time you log in. '
@@ -100,6 +98,7 @@ class UserTokenResetPasswordForm(forms.Form):
class UserForgotPasswordForm(forms.Form):
email = forms.CharField(label=_("Email"), required=False)
country_code = forms.CharField(required=False)
sms = forms.CharField(
label=_('SMS'), required=False,
help_text=_('The phone number must contain an area code, for example, +86')