add: limiter extension to allow rate-limit the API

This commit is contained in:
ziirish 2017-01-29 18:00:22 +01:00
parent 3692887d80
commit 12100ff884
9 changed files with 154 additions and 20 deletions

View file

@ -15,7 +15,7 @@ from wtforms import TextField, PasswordField, BooleanField, SelectField, validat
class LoginForm(FlaskForm):
username = TextField(__('Username'), [validators.Length(min=2, max=25)])
username = TextField(__('Username'), [validators.Required()])
password = PasswordField(__('Password'), [validators.Required()])
language = SelectField(__('Language'), choices=LANGUAGES.items(), default=get_locale)
remember = BooleanField(__('Remember me'), [validators.Optional()])