Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 688 Bytes

sendPasswordReset.md

File metadata and controls

55 lines (41 loc) · 688 Bytes

Send Password Reset Link

URL : /api/auth/password-reset

METHOD : POST

Body:

{
  "email": "[email protected]"
}

Success Response:

code : 200

{
    "status":"success",
    "message":"password reset link sent to your email account"
}

Fail Response:

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"
}