arpittyagi102 / LinkUp

Link Up is a real time chatting application project, it utilizes, MERN, socket.io
https://getlinkup.vercel.app
MIT License
23 stars 30 forks source link

Forgot password and Reset password added #54

Closed VanshVg closed 1 year ago

VanshVg commented 1 year ago

I have added backend of Forgot Password and Reset Password and for that made changes in authController.js, authRoutes.js and package.json.

-Screenshots

image

image

image

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @arpittyagi102 on Vercel.

@arpittyagi102 first needs to authorize it.

VanshVg commented 1 year ago

Which checks are getting failed??

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
link-up ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2023 6:53pm
VanshVg commented 1 year ago

hello @VanshVg, Thank you so much for your contribution As I can see you have used NodeMailer as the mailing service, please guide me towards it, do i need to create a API key on its website, or just login and enter email and pass here.

No you don't need to create any API key. You just have to add email of your email account from which you wanna send email and keep it as "LINKUP_EMAIL" in .env file. And for password you have to generate App Password for your email account. Go to google accounts -> Security -> 2 steps verification -> Enter your password -> App Password -> Select device -> Other. Then generate App Password like that. Then copy the generated password and paste it to .env file as "LINKUP_PASS".

Your .env file should look like this "LINKUP_EMAIL" = Your email id "LINKUP_PASS" = Generated App Password

Let me know if you have any doubts.

VanshVg commented 1 year ago

Ok.