Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
๐Ÿ”— Create Reset Password Link & Store Token in DB! | Forgot Password Part 2 ๐Ÿš€
Play lesson

Node JS Tutorial for Beginners in Hindi - 2025 - ๐Ÿ”— Create Reset Password Link & Store Token in DB! | Forgot Password Part 2 ๐Ÿš€

5.0 (2)
26 learners

What you'll learn

This course includes

  • 35.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this video (Part 2 of the Forgot Password series), we will create a secure reset password link and store password reset tokens in the database. Weโ€™ll validate the email with Zod, generate a random token, hash it, and insert it into the DB. Finally, we'll build the link to send via email. Letโ€™s make password recovery seamless! ๐Ÿ”ฅ Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html ๐Ÿ“บ Watch the complete Node.JS Playlist here :https://youtube.com/playlist?list=PLwGdqUZWnOp3KELplHtc-RnJ5xTUPqdgH&si=_ob8F88HYxCdspup ------------------------------------------------------------------------ ๐Ÿš€ Boost Your Skills with these Pre-Requisite Videos: ๐Ÿ”— Best HTML Course - https://youtu.be/5ccq_nLHneE ๐Ÿ”— Best CSS Course - https://youtu.be/MSICFljRcb4 ๐Ÿ”— JavaScript Basics Course Part 1 - https://youtu.be/13gLB6hDHR8 ๐Ÿ”— JavaScript Advanced Course Part 2 - https://youtu.be/YwsOCN8woA8 ------------------------------------------------------------------------ ๐Ÿ’ธ Build Your Own E-commerce Website for Free! - https://www.thapatechnical.com/2024/03/build-complete-ecommerce-website-using.html ------------------------------------------------------------------------ โœŒ๏ธ Join Us! ๐Ÿš€ Become a Member: Unlock perks, free source code, and more Join Now : https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join ๐Ÿ“ท Connect on Instagram: https://www.instagram.com/thapatechnical ๐Ÿ—จ๏ธ Join Our Discord Server: Hang out with fellow programmers Discord Link: https://discord.gg/MdScmCsua6 ------------------------------------------------------------------------ โŒ›TIMELINEโณ 0:00 Intro to Creating a Reset Password Link & Storing Tokens 0:55 Steps to Post Forgot Password Request 3:25 Creating Route for Post Forgot Password 3:50 Creating Controller Function for Forgot Password 4:30 Creating verifyEmailSchema Using Zod 7:30 Handling Data & Errors from Email Validation 9:40 Verifying User by Email in DB 12:50 Creating a Reset Link for Verified Users 13:20 Steps to Generate and Send the Link 15:00 PAUSE & Try Yourself! 15:35 Passing Arguments in createLink Function 16:05 Generating a Secure Random Token 17:02 Converting Token into a Hashed Format 18:35 Deleting Previous Password Reset Tokens from DB 19:30 Inserting New Password Reset Token into Table 20:34 Creating the Final Reset Password Link 21:50 Understanding the Link and Its Components 23:40 Next Video Update 25:05 Support My Channel

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

FAQs

Course Hive
Download CourseHive
Keep learning anywhere