Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password reset #22

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Password reset #22

merged 2 commits into from
Jan 17, 2025

Conversation

iamrahimi
Copy link
Collaborator

@iamrahimi iamrahimi commented Jan 15, 2025

functionality for password reset

added to column to user table
--- resetPasswordToken - type - string
--- resetPasswordExpires -- type - timestamp

installed to library
nodemailer
crypto

Please add below variable to .env file
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=587
MAIL_USER=
MAIL_PASS=
MAIL_FROM=[email protected]

Note: tested with mailtrap.com, so if needed can use that.

Api links:
domain.com/api/v1/forgot-password // will send en email with token to the user email.
domain.com/api/v1/reset-password/:token //

@iamrahimi iamrahimi merged commit d344fd7 into main Jan 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants