Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created January 22, 2020 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/77638ddcbc298ed6e38301386c345587 to your computer and use it in GitHub Desktop.
Save Porter97/77638ddcbc298ed6e38301386c345587 to your computer and use it in GitHub Desktop.
#...
from wtforms import StringField, PasswordField, BooleanField, SubmitField
#...
class LoginForm(FlaskForm):
email = StringField(‘email’, validators=[DataRequired(), Length(1, 64),
Email()])
password = PasswordField(‘Password’, validators=[DataRequired()])
remember_me = BooleanField(‘Keep me logged in’, id=”checkbox”)
submit = SubmitField(‘Login’)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment