Summary
Keywords
Full Transcript
This video shows how to validate passwords using Zod in an Express & MySQL setup. Learn when and where to trigger validation on your change password form. We build the POST route and controller to process password changes. See how to create a password schema and use the refine method to check if new and confirm passwords match. 🔥 Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html Finally, we review the data returned from Zod and discuss key points. 📺 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 Password Validation with Zod in Express & MySQL 1:05 – Get Source Code 1:35 – How, When, and Where to Show Validation in Form 2:15 – POST Route for Change Password 2:32 – Change Password Controller File 3:00 – Important Things to Keep in Mind 4:08 – How to Create Password Schema Using Zod 6:12 – Validating New and Confirm Passwords 9:20 – Getting Data After Validation in Controller 10:35 – Cache About req.flash & Redirect 11:18 – Testing Our App for Validation 11:55 – What Data Values Look Like 12:30 – My POV on Zod Validation 13:00 – Next Video Update
