Update login
Add profile
This commit is contained in:
17
myapp/ns_login/forms.py
Normal file
17
myapp/ns_login/forms.py
Normal 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()])
|
||||
Reference in New Issue
Block a user