We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9d89a6 + 42ed503 commit ba6831fCopy full SHA for ba6831f
project/server/user/forms.py
@@ -2,17 +2,17 @@
2
3
4
from flask_wtf import Form
5
-from wtforms import TextField, PasswordField
+from wtforms import StringField, PasswordField
6
from wtforms.validators import DataRequired, Email, Length, EqualTo
7
8
9
class LoginForm(Form):
10
- email = TextField('Email Address', [DataRequired(), Email()])
+ email = StringField('Email Address', [DataRequired(), Email()])
11
password = PasswordField('Password', [DataRequired()])
12
13
14
class RegisterForm(Form):
15
- email = TextField(
+ email = StringField(
16
'Email Address',
17
validators=[DataRequired(), Email(message=None), Length(min=6, max=40)])
18
password = PasswordField(
0 commit comments