Implement POST /api/auth/request-password-reset Endpoint #22
Labels
No labels
CI/CD
MongoDB
PostgreSQL
api
authentication
bug
documentation
duplicate
enhancement
example issue
fix
good first issue
help wanted
high-level requirement
infrastructure
invalid
low-level requirement
medium-level requirement
question
security
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/starranja#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allows a user to initiate the password reset process by providing their email.
Tasks:
POST /api/auth/request-password-reset.emailin the request body.200 OKresponse, regardless of whether the email exists in the database.secrets.token_urlsafe()).password_reset_tokenstable with a 1-hour expiry.send_password_reset_emailservice with the user's email and the plaintext token.No need for password reset service because the credentials management will be centralized.