My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Breaking code down

Emmanuel Obeng's photo
Emmanuel Obeng
·Mar 2, 2020

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