URL : /api/auth/password-reset
METHOD : POST
{
"email": "[email protected]"
}
code : 200
{
"status":"success",
"message":"password reset link sent to your email account"
}
code : 400
{
"status": "fail",
"code": 400,
"message": ["\"email\" is required", "\"email\" must be a valid email"]
}
{
"status": "fail",
"code": 400,
"message": "Wait 1 hour to send another link"
}
code : 404
{
"status": "fail",
"code": 400,
"message": "user with given email doesn't exist"
}