hawat.blueprints.auth_dev.forms module

This module contains custom developer login form for Hawat.

class hawat.blueprints.auth_dev.forms.LoginForm(*args, **kwargs)[source]

Bases: flask_wtf.form.FlaskForm

Class representing developer authentication login form. This form provides list of all currently existing user accounts in simple selectbox, so that the developer can quickly login as different user.

cancel = <UnboundField(SubmitField, (l'Cancel',), {})>
login = <UnboundField(SelectField, (l'User account:',), {'validators': [<wtforms.validators.DataRequired object>]})>
set_choices()[source]

Load list of all user accounts and populate the choices attribute of the login selectbox.

submit = <UnboundField(SubmitField, (l'Login',), {})>