|
|
@ -1,13 +1,13 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
"""User forms.""" |
|
|
|
"""User forms.""" |
|
|
|
from flask_wtf import Form |
|
|
|
from flask_wtf import FlaskForm |
|
|
|
from wtforms import PasswordField, StringField |
|
|
|
from wtforms import PasswordField, StringField |
|
|
|
from wtforms.validators import DataRequired, Email, EqualTo, Length |
|
|
|
from wtforms.validators import DataRequired, Email, EqualTo, Length |
|
|
|
|
|
|
|
|
|
|
|
from .models import User |
|
|
|
from .models import User |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RegisterForm(Form): |
|
|
|
class RegisterForm(FlaskForm): |
|
|
|
"""Register form.""" |
|
|
|
"""Register form.""" |
|
|
|
|
|
|
|
|
|
|
|
username = StringField('Username', |
|
|
|
username = StringField('Username', |
|
|
|