#8 How to do forgot password in React JS by sending mail | Node JS | Reset Password | use nodemailer

  Рет қаралды 49,881

The Debug Arena

The Debug Arena

Күн бұрын

Hello Guys,
Check out this amazing cloud platform:
ZEGOCLOUD SDK provides easy video call SDK, voice call SDK, live streaming SDK and chat SDK for real-time interaction.
Get ZEGOCLOUD SDK for 10,000 free mins: bit.ly/3OznGu6
Pre-built UIKits in low codes: bit.ly/3SN4Ja1
Create docs sites with Docuo now: bit.ly/3SOF5S0
Top 10 video conferencing SDKs for you: bit.ly/3Sx6mHg
#zegocloud #uikits #sdk #api #react
In this video I have explained you about the steps through which you can forgot your password by sending the link to your mail.
If you have any doubt then DM me on instagram.
Topic Covered.
How to generate link to reset password?
User can change password with one link only one time.
Link will be valid for certain time period.
Send that link to users mail.
Thank You.
link to the code of node js
github.com/the...

Пікірлер: 96
@wisdomelue
@wisdomelue Жыл бұрын
great video to be very honest, absolutely awesome and simple to understand 🙌🏽✊🏾💯
@gabyiy
@gabyiy 2 жыл бұрын
ty bro works perfectly, i wanted from a long time to find a recover password video so i can implement to my projects. This works great, the only problem when i try to connect it to heroku the link i mean it dosent work :)
@thedebugarena
@thedebugarena 2 жыл бұрын
What happens what error it shows
@thedebugarena
@thedebugarena 2 жыл бұрын
You can share code ss on my Instagram
@gabyiy
@gabyiy 2 жыл бұрын
@@thedebugarena in the end i manage to fix it,it was a problem when i acces the link from the email i got the error that the page i try to acces dose not exist.The problem was in here : const __dirname=path.resolve() app.use(express.static(path.join(__dirname, "/frontend/build"))) app.get("*",(req,res)=> res.sendFile(path.join(__dirname, "/frontend/build/index.html")) ) res.sendFile(path.join(__dirname, "/backend/build/index.html")), i had put backend instead of frontend so the site only workend when i was moving with link but when i try to refresh or o acces directly that particular page i wont work. Now the recover password work great.Btw i dont know if you can make a tutorial on google sign in or facebook ty.
@thedebugarena
@thedebugarena 2 жыл бұрын
Thnx!! Definitely for sure. I had already integrated firebase in one of my video.
@ddung_phug
@ddung_phug 6 ай бұрын
Thank you so much you are my savior
@zainwasem
@zainwasem 2 жыл бұрын
o man you nailed in whole playlist
@biswasubudhi9533
@biswasubudhi9533 2 жыл бұрын
Well Explained!
@6977202865
@6977202865 Жыл бұрын
exceptional tutorial!!! thank you!!
@abeybruck151
@abeybruck151 Жыл бұрын
Great job this was awesome
@laxmanchoudhary7093
@laxmanchoudhary7093 2 жыл бұрын
Helped me lot ❤️
@quangminhtran9968
@quangminhtran9968 Жыл бұрын
Thank you so much with this tutorial !!!
@cyifuzojeandamascene6341
@cyifuzojeandamascene6341 Жыл бұрын
Thx bro U really helped me💫
@GangulaBalu
@GangulaBalu 2 ай бұрын
please post another video of TypeScript with React Js By sending mail
@coulibalyadama7693
@coulibalyadama7693 Жыл бұрын
exellent, ça m'a beaucoup aidé
@suyognagawade1096
@suyognagawade1096 9 ай бұрын
thank you for this video
@durgeshagrhari
@durgeshagrhari Жыл бұрын
bhai ek video logout ka bana do please 💥💥💫💫❤❤
@youngstertechnobytes7106
@youngstertechnobytes7106 Жыл бұрын
we want more sir please
@thedebugarena
@thedebugarena Жыл бұрын
For sure!!! Currently I m busy with some other work soon will be regular😉
@ForbiddenInstincts
@ForbiddenInstincts Жыл бұрын
Took me 19 hours to transcribe the code to work with my project appreciate this man good job great tutorial new sub! Are you planning on showing how to use react for the reset page instead of ejs soon?
@bavisettipavankalyan5791
@bavisettipavankalyan5791 Жыл бұрын
Bro,I can't get link on console. Please help me
@adityaparmar4996
@adityaparmar4996 7 ай бұрын
thank you
@atulchougale5745
@atulchougale5745 Жыл бұрын
Uncaught TypeError: Super expression must either be null or a function, not undefined default inherits.js:9 ValidatedInput ValidatedInput.js:26 js ValidatedInput.js:59 factory react refresh:6 Webpack 23 also this error is coming
@thedebugarena
@thedebugarena Жыл бұрын
We had a talk on this on instagram
@popularshots354
@popularshots354 Жыл бұрын
please make a video like this way for new user registration verified by email
@thedebugarena
@thedebugarena Жыл бұрын
Will make very soon
@popularshots354
@popularshots354 Жыл бұрын
@@thedebugarena please upload it today , i need this urgent, sir.
@thedebugarena
@thedebugarena Жыл бұрын
@@popularshots354 sorry about that but i can't upload it this soon.
@yokeshdhanabalan4227
@yokeshdhanabalan4227 Жыл бұрын
I need a src code which contain sign in, sign up ,forget password in react.js, node.js and mongoDB ? need help😢😢
@bavisettipavankalyan5791
@bavisettipavankalyan5791 Жыл бұрын
Bro,I Can't get link in console . please reply
@thedebugarena
@thedebugarena Жыл бұрын
Dm me on instagram
@arpankumarsingh2603
@arpankumarsingh2603 Жыл бұрын
owesome bro
@shimiyons1883
@shimiyons1883 Жыл бұрын
Bro after deploying the link can't work
@shimiyons1883
@shimiyons1883 Жыл бұрын
Pls give the answer
@bavisettipavankalyan5791
@bavisettipavankalyan5791 Жыл бұрын
Same issue
@shimiyons1883
@shimiyons1883 Жыл бұрын
@@bavisettipavankalyan5791 bro incase u got answer plf notify me
@user-lo3me1ov1y
@user-lo3me1ov1y 6 ай бұрын
where is React js this way is not the right way I want use client URL
@popularshots354
@popularshots354 Жыл бұрын
how to fix this error, sir? TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
@thedebugarena
@thedebugarena Жыл бұрын
Where you are getting this error send me ss on Instagram
@user-cc5qx9cg3q
@user-cc5qx9cg3q Жыл бұрын
Error: connect ECONNREFUSED ::1:587 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -4078, code: 'ESOCKET', syscall: 'connect', address: '::1', port: 587, command: 'CONN' I got this error can you help me to solve this one?
@thedebugarena
@thedebugarena Жыл бұрын
Dm me on instagram
@kyawswarhein5298
@kyawswarhein5298 Жыл бұрын
I can do until getting the link then when i go to link, it keeps saying unauthorized
@thedebugarena
@thedebugarena Жыл бұрын
Dm me on instagram
@felixomundi1495
@felixomundi1495 Жыл бұрын
Please can you add a logout option and update user details to this tutorial.And also protect routes on homepage.
@thedebugarena
@thedebugarena Жыл бұрын
I already have video on that you can see that Stay logged in
@felixomundi1495
@felixomundi1495 Жыл бұрын
I appreciate just drop the video soon🤩
@thedebugarena
@thedebugarena Жыл бұрын
@@felixomundi1495 it's already on my channel you can check out that
@mohamedel-touny8960
@mohamedel-touny8960 Жыл бұрын
How can I get the password after 2 step authentication ?
@thedebugarena
@thedebugarena Жыл бұрын
Told you on instagram
@onuprinceleytoochukwujohn1487
@onuprinceleytoochukwujohn1487 Жыл бұрын
Please what your Instagram name?
@hotsoda46
@hotsoda46 11 ай бұрын
Where is the code that is running the post request to update the password?
@thedebugarena
@thedebugarena 11 ай бұрын
That is in the form created in ejs there is method there when you submit the form it directly call the post request of update password
@teamhyper4063
@teamhyper4063 Жыл бұрын
bro i am getting user not exist while reset logic implementation plz solve bro
@thedebugarena
@thedebugarena Жыл бұрын
Have you put await
@BayanGroup
@BayanGroup Жыл бұрын
Hi Can you tell me my reset password is not working I am getting an error of "Error: Illegal arguments: object, number" on this line const encryptedPassword = await bcrypt.hash(password, 10); How can solve that please help me
@thedebugarena
@thedebugarena Жыл бұрын
check your password variable you might assigned it as an object
@BayanGroup
@BayanGroup Жыл бұрын
@@thedebugarena Thanks for reply but my password is a string and I check with your code as well those all same in GitHub
@thedebugarena
@thedebugarena Жыл бұрын
@@BayanGroup before creating encryptedPassowrd try to console the password see what you are getting else ping me on instagram
@jumbo999614
@jumbo999614 Жыл бұрын
Try this: const salt = await bcrypt.genSalt(); const encryptedPassword = await bcrypt.hash(password.toString(), salt); Make sure you delete all users in MongoDB and use Register page to create new user again. Th new user will be created using bcrypt with Salt. Then bcrypt compare will work correctly. Otherwise bcrypt will return "False" even your input password match the original password. This tutorial is 2022. I think new version requires Salt. I don't what salt is but it works. I had this problem before on tutorial about Login.
@IshanStory
@IshanStory Жыл бұрын
why user not exists error come ? my id is same in the database id ?
@thedebugarena
@thedebugarena Жыл бұрын
Check your condition properly and make sure you are using await
@arp_web03
@arp_web03 10 ай бұрын
My password are generated in token form why
@thedebugarena
@thedebugarena 10 ай бұрын
Didn't get you can you elaborate your issue
@aynuayex
@aynuayex Жыл бұрын
can you just give me a hint on how i can do this with a session and passport-local?
@thedebugarena
@thedebugarena Жыл бұрын
Didn't get you
@aynuayex
@aynuayex Жыл бұрын
@@thedebugarena what i mean was with out jwt.but fine i already saw a video and did implement it.thanks for the reply.
@mohammedshaheer6336
@mohammedshaheer6336 Жыл бұрын
how we can do without ejs and i want react js
@thedebugarena
@thedebugarena 11 ай бұрын
Yes you can but in that you have to do too much configuration you can find resources at Google. They are available but they might be difficult.
@seunopeyemi8120
@seunopeyemi8120 7 ай бұрын
why am i just seeing this video?? Whoever is occupying the presidential seat of your country should get up, because you deserve to be the president of your country
@thedebugarena
@thedebugarena 7 ай бұрын
That's some way of appreciating😄 Thnx♥️♥️
@adithyab9021
@adithyab9021 Жыл бұрын
After completing everything upto giving email in nodemailer code after that in reset form when i enter my email and press the submit button the following error occurs : "self-signed certificate in certificate chain" how can i get out from this. pls help🙏🙏
@thedebugarena
@thedebugarena Жыл бұрын
Dm me on instagram i will share the solution with you
@user-zm6kk1eb3k
@user-zm6kk1eb3k Жыл бұрын
@@thedebugarena sir what ur instagram name i'm also facing the same error
@arkodeepchatterjee
@arkodeepchatterjee 6 ай бұрын
please give code shown in video
@thedebugarena
@thedebugarena 6 ай бұрын
Sorry i lost that
@devanshmisra7119
@devanshmisra7119 Жыл бұрын
New password ko mongodb database m kaise save karenge
@thedebugarena
@thedebugarena Жыл бұрын
You can store your new password same as previous one then instead of create you can updateOne that password. I have covered that part in this video also.
@riteshgorde
@riteshgorde Жыл бұрын
how create ui for forgot password
@thedebugarena
@thedebugarena Жыл бұрын
I have shown the code in video
@arp_web03
@arp_web03 10 ай бұрын
Hlo
@bavisettipavankalyan5791
@bavisettipavankalyan5791 Жыл бұрын
Bro,get request not working. How to fix it?
@thedebugarena
@thedebugarena Жыл бұрын
What's the error
@bavisettipavankalyan5791
@bavisettipavankalyan5791 Жыл бұрын
@@thedebugarena can't Get/ error on browser
@user-vq7wq5ky5g
@user-vq7wq5ky5g 11 ай бұрын
where is the use of nodemailer ???
@thedebugarena
@thedebugarena 11 ай бұрын
To send reset password link to user
@user-vq7wq5ky5g
@user-vq7wq5ky5g 11 ай бұрын
@@thedebugarena Where you use nodemailer in this video??? please tell me timestamp>>>
@dazzledudefacts804
@dazzledudefacts804 Жыл бұрын
bhai mera update nhi ho raha database me
@thedebugarena
@thedebugarena Жыл бұрын
Dm me on Instagram
@atulchougale5745
@atulchougale5745 Жыл бұрын
Object { status: "error", data: "token expired" } ​ data: "token expired" ​ status: "error" after login this error is coming no user data is show
@thedebugarena
@thedebugarena Жыл бұрын
How much time you have given to expire the token
@vothuybaotram5c444
@vothuybaotram5c444 Жыл бұрын
var status = ""; if (JSON.parse(status) == "verified") { if (confirm("Do u want to login?")) { window.location.href = "localhost:3000/"; } } I got an error with this one since it didn't go to my signin page and only show status: 'password updated'
@thedebugarena
@thedebugarena Жыл бұрын
Instead of confirm try window.confirm or dm me on insta with your error
@tejuschaturvedi6234
@tejuschaturvedi6234 6 ай бұрын
Hi did you get the solution. I am facing the same erorr.
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 65 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 15 МЛН
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 7 МЛН
Send Mail with Nodemailer Using Node.js Backend
28:30
Daily Tuition
Рет қаралды 82 М.
React Forgot and Reset Password | React Authentication #4
12:07
Scalable Scripts
Рет қаралды 56 М.
React Forgot and Reset Password
20:17
ToThePointCode
Рет қаралды 37 М.
Setting up a production ready VPS is a lot easier than I thought.
29:50
Forget & Reset Password In MERN ECommerce Amazona
15:34
Coding with Basir
Рет қаралды 1,7 М.
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 65 МЛН