Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc'd that users with unusable passwords cannot request a password reset. #15346

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

amingilani
Copy link
Contributor

@amingilani amingilani commented Jan 21, 2022

Include warning around unusable passwords Users having an unusable passwords will not be able to request password reset emails. This important information is only found in the PasswordResetView docs, and not in the set_unusable_password docs. This patch rectifies this shortcoming and places the information where it is needed.

@amingilani amingilani closed this Jan 21, 2022
@amingilani amingilani deleted the fix-unusable-password-docs branch January 21, 2022 22:39
@amingilani amingilani restored the fix-unusable-password-docs branch January 21, 2022 22:39
@amingilani amingilani reopened this Jan 21, 2022
@amingilani amingilani marked this pull request as ready for review January 21, 2022 22:40
@github-actions
Copy link

Hello @amingilani! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

@amingilani
Copy link
Contributor Author

Hello! I'm bumping this for feedback :)

Copy link
Contributor

@nessita nessita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarification makes sense, thank you! Added a comment to comply with current docs style.

Comment on lines 185 to 189
.. note::
Users marked with an unusable password will not
able to request a password reset email via
:class:`~django.contrib.auth.views.PasswordResetView`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We try to avoid having bare notes in the docs, we prefer admonitions with meaningful titles. For example:

Suggested change
.. note::
Users marked with an unusable password will not
able to request a password reset email via
:class:`~django.contrib.auth.views.PasswordResetView`.
.. admonition:: Password reset restriction
Users having an unusable password will not able to request a
password reset email via
:class:`~django.contrib.auth.views.PasswordResetView`.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I've incorporated your suggestion in my patch :)

Users having an unusable passwords will not be able to request password
reset emails. This important information is only found in the
PasswordResetView docs, and not in the set_unusable_password docs. This
patch rectifies this shortcoming and places the information where it is
needed.
@nessita nessita changed the title Include warning around unusable passwords Doc'd that users with unusable passwords cannot request a password reset. Dec 19, 2023
Copy link
Contributor

@nessita nessita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good!

@nessita nessita merged commit 47033bf into django:main Dec 19, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants