Update login

Add profile
This commit is contained in:
RemiZOffAlex
2019-04-26 19:38:23 +03:00
parent bba7df52d2
commit 1e9ac7eb97
17 changed files with 237 additions and 46 deletions

17
myapp/ns_login/forms.py Normal file
View File

@@ -0,0 +1,17 @@
__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()])