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.
wtforms error fixed
Madi05c8d09a56e1
diff --git a/app/forms.py b/app/forms.pyindex ffd0cc2..630c6fb 100644--- a/app/forms.py+++ b/app/forms.py@@ -1,18 +1,29 @@from flask_wtf import FlaskForm, RecaptchaField-from wtforms import StringField, SubmitField, PasswordField-from wtforms.validators import DataRequired, Length+from wtforms import StringField, SubmitField, PasswordField, BooleanField, Form+from wtforms.validators import DataRequired, Length, EqualTo+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')])+ first_name = StringField('First Name', [DataRequired(), Length(4, 100, 'First name should consist of 4-200 characters')])+ last_name = StringField('Last Name', [DataRequired(), Length(4, 100, 'Last name should consist of 4-200 characters')])+ username = StringField('Username (4-30)', [DataRequired(), Length(4, 30, 'Username should consist of 4-30 characters')])+ password = PasswordField('Password (6-40)', [DataRequired(), Length(6, 40, 'Passowrd should consist of 6-40 characters')])+ repeat_password = PasswordField('Repeat Password')+ accept_terms = BooleanField('I accept the TOS', [DataRequired()])recaptcha = RecaptchaField()+ submit = SubmitField('Sign Up')++ @property+ def visible_fields(self):+ return (self.first_name, self.last_name, self.username, self.password, self.repeat_password)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')])+ password = PasswordField('Password (6-40)', validators=[DataRequired(), Length(6, 40, 'Passowrd should consist of 6-40 characters')])+ recaptcha = RecaptchaField()+ submit = SubmitField('Sign In')- submit = SubmitField('Register')-\ No newline at end of file+ @property+ def visible_fields(self):+ return (self.username, self.password)\ No newline at end of file