parent
1155e226ab
commit
3f541a2dcb
@ -1,8 +1,9 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import PasswordField, StringField, SubmitField
|
||||
from wtforms import PasswordField, StringField, SubmitField, HiddenField
|
||||
from wtforms.validators import DataRequired
|
||||
|
||||
class LoginForm(FlaskForm):
|
||||
username = StringField('Username', validators=[DataRequired()])
|
||||
password = PasswordField('Password', validators=[DataRequired()])
|
||||
submit = SubmitField('Submit')
|
||||
redirect_to = HiddenField('redirect_to')
|
||||
|
Loading…
Reference in new issue