user.forms.reset_password

Classes

RequestPasswordResetForm

A generic password reset request form for onegov.user.

PasswordResetForm

A generic password reset form for onegov.user.

Module Contents

class user.forms.reset_password.RequestPasswordResetForm(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 password reset request form for onegov.user.

email[source]
class user.forms.reset_password.PasswordResetForm(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 password reset form for onegov.user.

email[source]
password[source]
token[source]
update_password(request: onegov.core.request.CoreRequest) bool[source]

Updates the password using the form data (if permitted to do so).

Returns True if successful, False if not successful.