bip.auth package¶
Submodules¶
bip.auth.forms module¶
-
class
bip.auth.forms.
LoginForm
(*args, **kwargs)¶ Klasy bazowe:
flask_wtf.form.FlaskForm
- Parametry
formdata – Used to pass data coming from the enduser, usually request.POST or equivalent. formdata should be some sort of request-data wrapper which can get multiple parameters from the form input, and values are unicode strings, e.g. a Werkzeug/Django/WebOb MultiDict
obj – If formdata is empty or not provided, this object is checked for attributes matching form field names, which will be used for field values.
prefix – If provided, all fields will have their name prefixed with the value.
data – Accept a dictionary of data. This is only used if formdata and obj are not present.
meta – If provided, this is a dictionary of values to override attributes on this form’s meta instance.
**kwargs – If formdata is empty or not provided and obj does not contain an attribute named the same as a field, form will assign the value of a matching keyword argument to the field, if one exists.
-
save
() → Optional[bip.models.User]¶
-
password
= <UnboundField(PasswordField, ('hasło',), {'validators': [<wtforms.validators.InputRequired object>]})>¶
-
username
= <UnboundField(StringField, ('nazwa użytkownika',), {'validators': [<wtforms.validators.InputRequired object>]})>¶