This commit is contained in:
matthewalanpenning 2023-05-04 05:40:38 -04:00
parent 220667a2d0
commit ca191c0518

View file

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