PasswordResetCompleteView
This class provides a view that informs the user that their password has been successfully changed. It renders a success page using a customizable template and includes the application's login URL in the template context for easy navigation.
Attributes
| Attribute | Type | Description |
|---|---|---|
| template_name | string = registration/password_reset_complete.html | The path to the template used to render the password reset confirmation success page. |
| title | string = Password reset complete | The localized title string displayed in the page header and browser tab. |
Methods
get_context_data()
@classmethod
def get_context_data(
**kwargs: dict
) - > dict
Extends the template context with the application's login URL to allow users to navigate to the sign-in page after a successful password reset.
Parameters
| Name | Type | Description |
|---|---|---|
| **kwargs | dict | Arbitrary keyword arguments passed to the method to be included in the template context. |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing the template context variables, including the resolved login_url. |