user.utils

Functions

password_reset_url(→ str | None)

Appends the token needed by PasswordResetForm for a password reset.

Module Contents

user.utils.password_reset_url(user: onegov.user.User, request: onegov.core.request.CoreRequest, url: str) str | None[source]

Appends the token needed by PasswordResetForm for a password reset.

User:

The user (model).

Request:

The request.

Url:

The URL which points to the password reset view (which is using the PasswordResetForm).

Returns:

An URL containg the password reset token, or None if unsuccesful.