-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.py
More file actions
10 lines (9 loc) · 713 Bytes
/
forms.py
File metadata and controls
10 lines (9 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
from flask_wtf import Form
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Email, Length
class SignupForm(Form):
first_name = StringField('First name', validators=[DataRequired("Please Enter Your First Name!")])
last_name = StringField('Last name', validators=[DataRequired("Please Enter Your Last Name!")])
email = StringField('Email', validators=[DataRequired("Please Enter Your Email Address!"), Email("Please Enter A Valid Email!")])
password = PasswordField('Password', validators=[DataRequired("Please Enter A Password!"), Length(min = 6, message= "Password Must Be At Least 6 Charactres Long!")])
submit = SubmitField('Sign up')