mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-25 22:01:58 -06:00
21 lines
696 B
Python
21 lines
696 B
Python
# -*- coding: utf8 -*-
|
|
"""
|
|
.. module:: burpui.forms
|
|
:platform: Unix
|
|
:synopsis: Burp-UI forms module.
|
|
|
|
.. moduleauthor:: Ziirish <hi+burpui@ziirish.me>
|
|
|
|
"""
|
|
from .ext.i18n import LANGUAGES, get_locale
|
|
|
|
from flask_wtf import FlaskForm
|
|
from flask_babel import lazy_gettext as __
|
|
from wtforms import TextField, PasswordField, BooleanField, SelectField, validators
|
|
|
|
|
|
class LoginForm(FlaskForm):
|
|
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()])
|