diff --git a/Procfile.dev b/Procfile.dev deleted file mode 100644 index 211eaa3c..00000000 --- a/Procfile.dev +++ /dev/null @@ -1,4 +0,0 @@ -# Procfile.dev - development - -# Use the Flask development server. -web: python app.py diff --git a/forms.py b/forms.py index 3be12d82..c66f2416 100644 --- a/forms.py +++ b/forms.py @@ -1,15 +1,16 @@ from flask_wtf import Form -from wtforms import TextField, PasswordField +from wtforms import PasswordField +from wtforms import StringField from wtforms.validators import DataRequired, EqualTo, Length # Set your classes here. class RegisterForm(Form): - name = TextField( + name = StringField( 'Username', validators=[DataRequired(), Length(min=6, max=25)] ) - email = TextField( + email = StringField( 'Email', validators=[DataRequired(), Length(min=6, max=40)] ) password = PasswordField( @@ -23,11 +24,11 @@ class RegisterForm(Form): class LoginForm(Form): - name = TextField('Username', [DataRequired()]) + name = StringField('Username', [DataRequired()]) password = PasswordField('Password', [DataRequired()]) class ForgotForm(Form): - email = TextField( + email = StringField( 'Email', validators=[DataRequired(), Length(min=6, max=40)] )