Skip to content

Python script, which empowers people with no programming background to generate robust leads on a mass scale. This repo will be compiled of various versatile techniques used in lead generation.

user forms created

Madi3c5a83568413
diff --git a/app/forms.py b/app/forms.py
index e69de29..ffd0cc2 100644
--- a/app/forms.py
+++ b/app/forms.py
@@ -0,0 +1,18 @@
+from flask_wtf import FlaskForm, RecaptchaField
+from wtforms import StringField, SubmitField, PasswordField
+from wtforms.validators import DataRequired, Length
+
+class UserRegistrationForm(FlaskForm):
+ first_name = StringField('First Name', validators=[DataRequired(), Length(4, 100, 'First name should consist of 4-200 characters')])
+ last_name = StringField('Last Name', validators=[DataRequired(), Length(4, 100, 'Last name should consist of 4-200 characters')])
+ username = StringField('Username (4-30)', validators=[DataRequired(), Length(4, 30, 'Username should consist of 4-30 characters')])
+ password = PasswordField('Password (6-40)', validators=[DataRequired(), Length(6, 40, 'Passowrd should consist of 6-40 characters')])
+ recaptcha = RecaptchaField()
+
+
+class UserLoginForm(FlaskForm):
+ username = StringField('Username (4-30)', validators=[DataRequired(), Length(4, 30, 'Username should consist of 4-30 characters')])
+ password = StringField('Password (6-40)', validators=[DataRequired(), Length(6, 40, 'Passowrd should consist of 6-40 characters')])
+
+ submit = SubmitField('Register')
+
\ No newline at end of file