Set Password After Social Login in Node.js & MySQL🔥NOT Reset Password

Set Password After Social Login in Node.js & MySQL🔥NOT Reset Password

T
Thapa Technical
May 6, 2025

In this video, we are implementing the Set Password functionality in our Node.js and MySQL app. This is for users who logged in using GitHub or Google OAuth, and don’t have a password in our system.

We’re giving them the option to set a password manually so that they can log in normally using email and password in the future, without relying on social login.

⚠ Note: This is not a "Reset Password" feature. This is for setting a password for the first time for social login users.

📺 Watch the complete Node.JS Playlist here :https://youtube.com/playlist?list=PLwGdqUZWnOp3KELplHtc-RnJ5xTUPqdgH&si=_ob8F88HYxCdspup

🔥 Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html
------------------------------------------------------------------------
🚀 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 – Introduction to Set Password in Node App

0:25 – What Does Set Password Mean?

3:50 – Must-Watch Node.js Series

5:05 – Condition to Show Set or Change Password Option

8:30 – Creating the Set Password Page

12:25 – Handling Set Password POST Request

13:35 – Creating setPasswordSchema for Validation

17:10 – Checking If User Already Has a Password

18:55 – Updating the Password in Database

21:45 – Testing the Code

23:35 – Must-Watch Related Video