Files
myapp-full/myapp/ns_login/forms.py
RemiZOffAlex 1e9ac7eb97 Update login
Add profile
2019-04-26 19:38:23 +03:00

18 lines
415 B
Python

__author__ = 'RemiZOffAlex'
__copyright__ = '(c) RemiZOffAlex'
__license__ = 'MIT'
__email__ = 'remizoffalex@mail.ru'
__url__ = 'http://remizoffalex.ru'
from wtforms import (
validators,
Form,
StringField,
PasswordField
)
class LoginForm(Form):
username = StringField('Логин', [validators.Length(min=4, max=25)])
password = PasswordField('Пароль', [validators.DataRequired()])