Forgot Password User
Request a password reset OTP for a user account.
Endpoint
Authentication
Not required (public endpoint)
Request Body
Parameters
| Field | Type | Required | Description | Validation |
|---|---|---|---|---|
email |
string | Yes | User's email address | Valid email format |
Response
Success (200 OK)
A 6-digit OTP code is sent to the user's email. Use this OTP with Confirm Forgot Password User to reset the password.
Error Responses
User Not Found (404)
Example Request
curl -X POST "https://api.luxmart.site/v1/accounts/forget/password/user/" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com"
}'
Notes
- A new OTP is generated and stored for the user
- Previous OTP is replaced
- OTP is sent asynchronously via email
- All user tokens are invalidated after password reset