vial.blueprints.auth_pwd.forms module

This module contains custom developer login form for Hawat.

class vial.blueprints.auth_pwd.forms.LoginForm(formdata=<object object>, **kwargs)[source]

Bases: flask_wtf.form.FlaskForm

Class representing classical password authentication login form.

cancel = <UnboundField(SubmitField, (l'Cancel',), {})>
login = <UnboundField(StringField, (l'Login:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>, <function check_login>]})>
password = <UnboundField(PasswordField, (l'Password:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>]})>
submit = <UnboundField(SubmitField, (l'Login',), {})>
class vial.blueprints.auth_pwd.forms.RegisterUserAccountForm(*args, **kwargs)[source]

Bases: vial.blueprints.users.forms.BaseUserAccountForm

Class representing classical account registration form.

justification = <UnboundField(TextAreaField, (l'Justification:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>]})>
login = <UnboundField(StringField, (l'Login:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>, <function check_login>, <function check_unique_login>]})>
memberships_wanted = <UnboundField(QuerySelectMultipleField, (l'Requested group memberships:',), {'query_factory': <function get_available_groups>})>
password = <UnboundField(PasswordField, (l'Password:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>]})>
password2 = <UnboundField(PasswordField, (l'Repeat Password:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.EqualTo object>]})>