Reset Password

POST /resetpassword/{username}/{resetToken}: Resetting a forgotten user's password
{
"Password": string,
}

Note: The resetToken is only valid for a single time use. (i.e. Once the email expires (10 minute expiry) or you reset your password, you can't reuse this token)

Example Request

Body

{
"Password": "newPassword"
}

Possible Responses

Immediate Success

{
"code": 1,
"message": "successfully updated password",
"data": {}
}

Failure

{
"code": -1,
"message": "user not found",
"data": {}
}
{
"code": -1,
"message": "Forbidden",
"data": {}
}
Last updated on by Chris Lim