Skip to content

Commit

Permalink
Merge pull request #14 from vuLgAr/master
Browse files Browse the repository at this point in the history
TextField to StringField in forms
  • Loading branch information
mjhea0 committed Jul 17, 2016
2 parents a9d89a6 + 42ed503 commit ba6831f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/server/user/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@


from flask_wtf import Form
from wtforms import TextField, PasswordField
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email, Length, EqualTo


class LoginForm(Form):
email = TextField('Email Address', [DataRequired(), Email()])
email = StringField('Email Address', [DataRequired(), Email()])
password = PasswordField('Password', [DataRequired()])


class RegisterForm(Form):
email = TextField(
email = StringField(
'Email Address',
validators=[DataRequired(), Email(message=None), Length(min=6, max=40)])
password = PasswordField(
Expand Down

0 comments on commit ba6831f

Please sign in to comment.