18 lines
425 B
Python
Executable File
18 lines
425 B
Python
Executable File
from flask_wtf import FlaskForm
|
|
from wtforms import (
|
|
StringField,
|
|
PasswordField,
|
|
BooleanField,
|
|
)
|
|
from wtforms.validators import DataRequired, Length
|
|
|
|
|
|
class UserForm(FlaskForm):
|
|
username = StringField(validators=[DataRequired(), Length(min=1, max=120)])
|
|
|
|
password = PasswordField(validators=[DataRequired(), Length(min=8, max=120)])
|
|
|
|
confirm_password = PasswordField()
|
|
|
|
remember = BooleanField()
|