v0.0.0
This commit is contained in:
parent
220667a2d0
commit
ca191c0518
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ from lxconsole.models import User
|
|||
|
||||
|
||||
class RegistrationForm(FlaskForm):
|
||||
username = StringField('Username', validators=[DataRequired(), Length(min=2, max=20)])
|
||||
username = StringField('Username', validators=[DataRequired(), Length(min=2, max=255)])
|
||||
email = StringField('Email', validators=[DataRequired(), Email()])
|
||||
password = PasswordField('Password', validators=[DataRequired()])
|
||||
confirm_password = PasswordField('Confirm Password', validators=[DataRequired(), EqualTo('password')])
|
||||
|
@ -23,7 +23,7 @@ class RegistrationForm(FlaskForm):
|
|||
|
||||
|
||||
class LoginForm(FlaskForm):
|
||||
username = StringField('Username', validators=[DataRequired(), Length(min=2, max=20)])
|
||||
username = StringField('Username', validators=[DataRequired(), Length(min=2, max=255)])
|
||||
password = PasswordField('Password', validators=[DataRequired()])
|
||||
remember = BooleanField('Remember Me')
|
||||
submit = SubmitField('Login')
|
Loading…
Reference in a new issue