summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/auth.py
blob: 8c84e84e779369a66e40cc420d3853e6049413fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from wtforms import (
    Form, SubmitField, HiddenField, SelectField, BooleanField, IntegerField,
    StringField, RadioField, PasswordField
)
from wtforms.validators import InputRequired
from flask_wtf import FlaskForm
from flask_babel import _

class LoginForm(FlaskForm):
    user = StringField(
        label=_('User'),
        validators=[InputRequired()]
    )
    pwd = PasswordField(
        label=_('Password'),
        validators=[InputRequired()]
    )
    submit = SubmitField(
        label=_('Login')
    )