Update 'dashmachine/user_system/forms.py'
Making change to 1 character minimum for username
This commit is contained in:
parent
206bac4d0a
commit
800f99b79c
2
dashmachine/user_system/forms.py
Executable file → Normal file
2
dashmachine/user_system/forms.py
Executable file → Normal file
@ -8,7 +8,7 @@ from wtforms.validators import DataRequired, Length
|
|||||||
|
|
||||||
|
|
||||||
class UserForm(FlaskForm):
|
class UserForm(FlaskForm):
|
||||||
username = StringField(validators=[DataRequired(), Length(min=4, max=120)])
|
username = StringField(validators=[DataRequired(), Length(min=1, max=120)])
|
||||||
|
|
||||||
password = PasswordField(validators=[DataRequired(), Length(min=8, max=120)])
|
password = PasswordField(validators=[DataRequired(), Length(min=8, max=120)])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user