简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM