Summary
Keywords
Full Transcript
Welcome to the final part (6) of the Forgot Password series! 🚀 In this video, we’ll complete the reset password process after the user clicks the Change Password button. We’ll cover: ✔️ How to handle the password reset submission ✔️ Verifying the reset password token ✔️ Ensuring the new & confirm password match ✔️ Updating the user password securely in the database ✔️ Deleting old reset tokens for security ✔️ Testing the full forgot password flow 🔥 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 completing the reset password ⏰ 0:12 What we have covered so far ⏰ 1:08 Steps on how to reset the password after submitting ⏰ 3:45 Get the source code ⏰ 4:12 Creating route for POST resetPasswordToken ⏰ 4:45 Creating controller file for resetPassword token ⏰ 5:00 Getting token from the URL & verifying with DB ⏰ 5:50 Password validation for new and confirm password ⏰ 9:10 Extracting newPassword from Zod validation ⏰ 9:35 Finding the user using the token’s userId ⏰ 10:40 Deleting all reset password tokens for the user ⏰ 12:10 Updating the user's new password in the database ⏰ 13:45 Testing the forgot password functionality ⏰ 16:05 Feeling awesome! 🎉 ⏰ 16:45 Get source code
