Skip to content

Confusing message output when forcing password reset #44

@mikemanger

Description

@mikemanger

On a site with the messages framework context processor enabled this is getting passed after a user resets their password:

The enforced password change “PasswordChangeRequired object (7)” was added successfully. You may edit it again below.

This is from the template:

{% if messages %}
<ul class="messages">
    {% for message in messages %}
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
</ul>
{% endif %}

It should probably just say something like "Password successfully reset" - the link to change it is expired/not valid as the object is deleted. Adding a sensible __str__() method to the PasswordChangeRequired model would also be a good idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions