Add user login form

master
Neslihan 4 years ago
parent 8dd0e52081
commit 74f779e0f8
  1. 10
      app/forms.py
  2. 0
      app/models.py
  3. 0
      config.py

@ -0,0 +1,10 @@
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
remember_me = BooleanField('Remember Me')
submit = SubmitField('Sign In')
Loading…
Cancel
Save