mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Reformatting
This commit is contained in:
parent
54e9858633
commit
27a5f9db65
@ -7,6 +7,6 @@ class LoginForm(flask_wtf.FlaskForm):
|
|||||||
csrf = False
|
csrf = False
|
||||||
email = fields.StringField(_('E-mail'), [validators.Email(), validators.DataRequired()])
|
email = fields.StringField(_('E-mail'), [validators.Email(), validators.DataRequired()])
|
||||||
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
||||||
pwned = fields.HiddenField(label='',default=-1)
|
pwned = fields.HiddenField(label='', default=-1)
|
||||||
submitWebmail = fields.SubmitField(_('Sign in'))
|
submitWebmail = fields.SubmitField(_('Sign in'))
|
||||||
submitAdmin = fields.SubmitField(_('Sign in'))
|
submitAdmin = fields.SubmitField(_('Sign in'))
|
||||||
|
@ -59,7 +59,7 @@ class DomainSignupForm(flask_wtf.FlaskForm):
|
|||||||
localpart = fields.StringField(_('Initial admin'), [validators.DataRequired()])
|
localpart = fields.StringField(_('Initial admin'), [validators.DataRequired()])
|
||||||
pw = fields.PasswordField(_('Admin password'), [validators.DataRequired()])
|
pw = fields.PasswordField(_('Admin password'), [validators.DataRequired()])
|
||||||
pw2 = fields.PasswordField(_('Confirm password'), [validators.EqualTo('pw')])
|
pw2 = fields.PasswordField(_('Confirm password'), [validators.EqualTo('pw')])
|
||||||
pwned = fields.HiddenField(label='',default=-1)
|
pwned = fields.HiddenField(label='', default=-1)
|
||||||
captcha = flask_wtf.RecaptchaField()
|
captcha = flask_wtf.RecaptchaField()
|
||||||
submit = fields.SubmitField(_('Create'))
|
submit = fields.SubmitField(_('Create'))
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ class UserForm(flask_wtf.FlaskForm):
|
|||||||
localpart = fields.StringField(_('E-mail'), [validators.DataRequired(), validators.Regexp(LOCALPART_REGEX)])
|
localpart = fields.StringField(_('E-mail'), [validators.DataRequired(), validators.Regexp(LOCALPART_REGEX)])
|
||||||
pw = fields.PasswordField(_('Password'))
|
pw = fields.PasswordField(_('Password'))
|
||||||
pw2 = fields.PasswordField(_('Confirm password'), [validators.EqualTo('pw')])
|
pw2 = fields.PasswordField(_('Confirm password'), [validators.EqualTo('pw')])
|
||||||
pwned = fields.HiddenField(label='',default=-1)
|
pwned = fields.HiddenField(label='', default=-1)
|
||||||
quota_bytes = fields_.IntegerSliderField(_('Quota'), default=10**9)
|
quota_bytes = fields_.IntegerSliderField(_('Quota'), default=10**9)
|
||||||
enable_imap = fields.BooleanField(_('Allow IMAP access'), default=True)
|
enable_imap = fields.BooleanField(_('Allow IMAP access'), default=True)
|
||||||
enable_pop = fields.BooleanField(_('Allow POP3 access'), default=True)
|
enable_pop = fields.BooleanField(_('Allow POP3 access'), default=True)
|
||||||
@ -94,7 +94,7 @@ class UserSignupForm(flask_wtf.FlaskForm):
|
|||||||
localpart = fields.StringField(_('Email address'), [validators.DataRequired(), validators.Regexp(LOCALPART_REGEX)])
|
localpart = fields.StringField(_('Email address'), [validators.DataRequired(), validators.Regexp(LOCALPART_REGEX)])
|
||||||
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
||||||
pw2 = fields.PasswordField(_('Confirm password'), [validators.EqualTo('pw')])
|
pw2 = fields.PasswordField(_('Confirm password'), [validators.EqualTo('pw')])
|
||||||
pwned = fields.HiddenField(label='',default=-1)
|
pwned = fields.HiddenField(label='', default=-1)
|
||||||
submit = fields.SubmitField(_('Sign up'))
|
submit = fields.SubmitField(_('Sign up'))
|
||||||
|
|
||||||
class UserSignupFormCaptcha(UserSignupForm):
|
class UserSignupFormCaptcha(UserSignupForm):
|
||||||
@ -114,7 +114,7 @@ class UserSettingsForm(flask_wtf.FlaskForm):
|
|||||||
class UserPasswordForm(flask_wtf.FlaskForm):
|
class UserPasswordForm(flask_wtf.FlaskForm):
|
||||||
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
||||||
pw2 = fields.PasswordField(_('Password check'), [validators.DataRequired()])
|
pw2 = fields.PasswordField(_('Password check'), [validators.DataRequired()])
|
||||||
pwned = fields.HiddenField(label='',default=-1)
|
pwned = fields.HiddenField(label='', default=-1)
|
||||||
submit = fields.SubmitField(_('Update password'))
|
submit = fields.SubmitField(_('Update password'))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user