Add in auth however there are no restrictions currently
This commit is contained in:
17
forms/login.py
Normal file
17
forms/login.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import StringField, PasswordField, SubmitField
|
||||
from wtforms.validators import DataRequired, Email
|
||||
|
||||
class LoginForm(FlaskForm):
|
||||
email = StringField(
|
||||
'Email',
|
||||
validators=[
|
||||
DataRequired(message="Email is required."),
|
||||
Email(message="Enter a valid email address.")
|
||||
]
|
||||
)
|
||||
password = PasswordField(
|
||||
'Password',
|
||||
validators=[DataRequired(message="Password is required.")]
|
||||
)
|
||||
submit = SubmitField('Login')
|
||||
Reference in New Issue
Block a user