As far as I can tell, there are two reasonable ways to reset a password forgotten by the user.
Enter the user's email address and a new plaintext password will be sent to their email address.
The link is sent to their email address with a UID in the URL. By clicking on this, the user receives a form on the website where they can choose their own password.
Which method is preferred and why?
If method 1 is used, perhaps a third party can read the letter and get a new password. If method 2 is used, what does it take for someone to methodically go through the UIDs to try to access the form in order to change the user password?
source
share