We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Password recovery from hash

Hi! How to recover the password from the hash to send it to the user if he forgot it?



85.5k

you can't. Thats the idea you can only compare it and never knowing what's the real password is.

if you are asking how to implement password reset feature, the idea is that you make the user enter a new password and update the record in the database.

You reset it, not recover.

The password can not be restored. The best option is to generate a new password, change it to the database, and send the user's e-mail with the new password.