blob: 005b53ab5aac9750cc24a398fb022087036e4abe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField
from wtforms.fields.html5 import EmailField
from wtforms.validators import DataRequired, Email
class MyForm(FlaskForm):
name = StringField('Name', validators=[DataRequired()])
email = EmailField('Email', validators=[DataRequired(), Email()])
subject = StringField('Subject', validators=[DataRequired()])
body = TextAreaField('Message', validators=[DataRequired()])
class UserSignUp(FlaskForm):
first_name = StringField('First Name', validators=[DataRequired()])
last_name = StringField('Last Name')
email = EmailField('Email',validators=[DataRequired(),Email()])
password = PasswordField('Password',validators=[DataRequired()])
class UserLogIn(FlaskForm):
email = EmailField('Email',validators=[DataRequired()])
password = PasswordField('Password',validators=[DataRequired()])
|