add forget password feature #35
Addition:
- ForgetPassword.jsx for enter an email to reset a password
- ResetPassword.js for check token is valid or not and reset a password if token is valid.
Updates:
-
AuthController.js add 'sendForgetMail' funtion for generating temporary token and sent a mail . add 'verifyForgetMail' function for checking token is valid or not. add 'resetPassword' function for update password.
-
backend/config.env
for sending mail: MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_SECURE=true MAIL_USER=yourEmail MAIL_PASS=yourPass
#client url BASE_URL=http://localhost:3000
https://github.com/SamarthKadam/ChatBox/assets/133166222/b64ca2d1-58d6-4557-9faa-c1573dec6b20
@piyush-gangrade is attempting to deploy a commit to the samarthkadam's projects Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| chat-box-jyxx | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 14, 2024 4:11pm |
@piyush-gangrade But I tried to change my password. Its throwing me error
@SamarthKadam, which type of error did you get? If you send me the output of the terminal and console, it will help me understand better because it works perfectly on my system. Also, please check the updates to server/.config.env.
I'll setup my environment and get back to you
I've added all the env files in the server. Anything I need to configure?
No.
@piyush-gangrade There's some errors related to blocked cors
If you want you can change it because no such error occurs on my system.
If error is still occurs than please provide screen video or screenshot for better understanding.
@SamarthKadam If you still encounter an error, could you please send me a screenshot? This will help me resolve the issue so I can work on the other issue. Also, please add reviewers, assignees, and labels. Thank you!
@piyush-gangrade I'll try and let you know