Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

General Information


ServiceAPIMethod
urac/resetPasswordPOST


Data Models: UsersTokens

Workflow: Reset Password Flow

Input


NameSourceMandatoryTypeSpecial FormatDescription
tokenQueryYESStringN/AGenerated by Urac and email to user after forgot password request is made.
passwordBodyYESStringN/A 
confirmationBodyYESStringN/Asame value as password

 

Output


Valid Response

Valid Response Sample
{
	"result": true,
	"data": ...
}

 

Invalid Response

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[408],
        "details":[
            {
                "code":408,
                "message":"The password and its confirmation do not match"
            }
        ]
    }
}



Error Codes


 

Code
Description
406Invalid or token has expired.
407Problem validating Request. Please try again.
408The password and its confirmation do not match



Example (CURL)


Request

Calling Reset Password API
 > CURL -X POST http://127.0.0.1:4000/resetPassword?token=abcdef -d 'password=johnpassword&confirmation=johnpassword'

Response

Reset Password API response
{
	"result": true,
	"data": true
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.