user.forms.login

Classes

LoginData

dict() -> new empty dictionary

LoginForm

A generic login form for onegov.user

Module Contents

class user.forms.login.LoginData[source]

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

username: str[source]
password: str[source]
second_factor: str | None[source]
skip_providers: NotRequired[bool][source]
class user.forms.login.LoginForm(formdata: MultiDict[str, Any] | None = None, obj: object | None = None, prefix: str = '', data: dict[str, Any] | None = None, meta: dict[str, Any] | None = None, *, extra_filters: Mapping[str, Sequence[Any]] | None = None, **kwargs: Any)[source]

Bases: onegov.form.Form

A generic login form for onegov.user

username[source]
password[source]
yubikey[source]
property login_data: LoginData[source]

Returns the data required to be passed to the onegov.user.auth.Auth methods.