aboutsummaryrefslogtreecommitdiff
path: root/app/forms/app_forms.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-03 23:45:51 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-03 23:45:51 +0530
commit53ae62ef3f206907f89aa3088b83b638b59e6de5 (patch)
tree1df3df18ece84f244cbc639f934cbbf1f37ca719 /app/forms/app_forms.py
parentbbbf94169e0dddd88790c0907729a5f257f5ef5b (diff)
added user sign up form
Diffstat (limited to 'app/forms/app_forms.py')
-rw-r--r--app/forms/app_forms.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/forms/app_forms.py b/app/forms/app_forms.py
index 92913d6..2e2991d 100644
--- a/app/forms/app_forms.py
+++ b/app/forms/app_forms.py
@@ -1,5 +1,5 @@
from flask_wtf import FlaskForm
-from wtforms import StringField, TextAreaField
+from wtforms import StringField, TextAreaField, PasswordField
from wtforms.fields.html5 import EmailField
from wtforms.validators import DataRequired, Email
@@ -7,4 +7,10 @@ class MyForm(FlaskForm):
name = StringField('Name', validators=[DataRequired()])
email = EmailField('Email', validators=[DataRequired(), Email()])
subject = StringField('Subject', validators=[DataRequired()])
- body = TextAreaField('Message', validators=[DataRequired()]) \ No newline at end of file
+ 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()])