You can fine the explanation of the code in youtube video https://youtu.be/zUFcjOt_ytk
Before you use the code, edit following files.
- change_password_process.php, in line-5 edit database connection.
- forgot_password_process.php, from line-23 to line-39 edit for email. in line-41 edit for database connection.