POST /api/auth/check-password
Verifies that the provided password matches the authenticated user’s current password.Authentication
Required. This endpoint requires authentication via theauthenticate middleware.
Include authentication token in the request headers.
Request Body
Current password to verify. Cannot be empty.
Request Example
Response
Success message confirming password is correct.
Success Response (200 OK)
Error Responses
401 Unauthorized - Incorrect Password
401 Unauthorized - No Authentication
400 Bad Request - Validation Errors
cURL Example
Notes
- Requires valid authentication token in request headers
- Useful before allowing password changes or sensitive operations
- Password is validated against the hashed password in the database
- Rate limiting is applied to this endpoint
- Does not modify any user data