Forget password feature is a common in website, but I can lead to a flaw. Using a weak random generator can leak and compromise important information. In this talk, we will see how we can attack it and how can we protect against.
a form • create a service to generate link with token • send link to user by email • create controller to check that the token is valid and display form to change password