🔐 Reset Password Page Setup & Secure Token Verification (Part 5) | Express.js

🔐 Reset Password Page Setup & Secure Token Verification (Part 5) | Express.js

T
Thapa Technical
1 Video View·Apr 11, 2025

In this part 5 of the Forgot Password series, we’ll set up the Reset Password page where users can finally enter their current, new, and confirm password. We’ll cover:
✔️ Two ways to open the reset password page
✔️ How we securely verify the reset token
✔️ Checking token validity and expiration
✔️ Rendering the reset password page if everything is correct

🔥 Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html

By the end of this video, you’ll have a fully functional reset password page with secure token verification! 🚀

📺 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 reset password page
0:12 What we have covered so far
0:35 Two ways to open reset password page
0:55 Secret: How we get the token & verify the user
2:10 Get the source code
3:35 Creating resetPassword Route with slug
5:00 Creating controller file
5:12 Getting token from the URL
5:50 Verifying if password token from URL and DB are the same
10:15 Checking if the token has expired
13:50 Redirecting to wrongReset page if the token is invalid
14:35 Rendering resetPassword page if the token is valid
16:20 Understanding resetPassword form input fields
17:30 Where to redirect after form submission