When resetting password after forgetting it, why is there a need to notify "Password cannot be your previous password"?

This is from the perspective of someone who had supposedly forgotten their password. We’re doing this project wherein we "secure" an application that was given to us. We added this "forget password" feature that allows … Continue reading When resetting password after forgetting it, why is there a need to notify "Password cannot be your previous password"?

exploiting the scenario and how to generate a secure reset password token

I am using the following line of code to create a reset password code sent to the user in her/his email. when scanned with brakeman to my ruby code, this line of code is catched and describes it as it is vulnerable.
this is the line of cod… Continue reading exploiting the scenario and how to generate a secure reset password token