Breaking code down
I added forget password logic to my website and i need your review on my code. Some pseudcode to explain some points. 1.check if user email already exist. 2.if user exist,create a unique random string for the user and store it alongside the email inside a database. 3.send a link with the token part of the link to the user. Below is a link to the code. pastebin.com/ztGzzXEV