Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Validation of reset password link in DJANGO

So I already know that the default Time of Validation for the password reset link is 3 days, .
from – https://docs.djangoproject.com/en/4.0/ref/settings/#password-reset-timeout

but what happen if i send 3-4 mails for reset password,i use only one of them – what about the another links ?
as i say i sent 3-4 mails so i have 3-4 links.

If I used one link will the rest of the links no longer be valid?
someone know how its work ?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There is a great article on how the reset password mechanism works: https://www.sjoerdlangkemper.nl/2016/04/07/djangos-reset-password-mechanism/

As the token consists of:

  • user ID
  • password
  • time of last login
  • current date

any previously sent link becomes invalid if the user will change the password or remember the credentials and logs in.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading