Changes a user’s password using a one-time password-reset token (the “secret text”) that was issued by the ForgotPassword or ForgotPasswordByUserName API and delivered to the user by email.
This method is used to complete the self-service password-reset flow:
ForgotPassword (by email) or ForgotPasswordByUserName -“ the server emails them a reset link containing a GUID token.ChangePasswordUsingSecretText with that token and the desired new password.No authentication ticket is required.
/srv.asmx/ChangePasswordUsingSecretText
/srv.asmx/ChangePasswordUsingSecretText?userName=...&secretText=...&newPassword=.../srv.asmx/ChangePasswordUsingSecretText (form data)http://tempuri.org/ChangePasswordUsingSecretText| Parameter | Type | Required | Description |
|---|---|---|---|
userName |
string | Yes | The login name of the user whose password is being reset |
secretText |
string | Yes | The one-time password-reset token (a GUID string, e.g. 3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c) that was emailed to the user. Must be in valid GUID format. The token is single-use and expires after a server-configured period. |
newPassword |
string | Yes | The new password to set for the account. Must satisfy the application’s password complexity policy and must not be identical to the user’s current password. |
Note: This method does not require an
authenticationTicket.
<root success="true" />
<root success="false" error="Error message" />
secretText token must have been issued for the specified userName by a prior call to ForgotPassword or ForgotPasswordByUserName.GET /srv.asmx/ChangePasswordUsingSecretText?userName=jsmith&secretText=3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c&newPassword=NewSecure!99 HTTP/1.1
Host: server.example.com
POST /srv.asmx/ChangePasswordUsingSecretText HTTP/1.1
Content-Type: application/x-www-form-urlencoded
userName=jsmith&secretText=3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c&newPassword=NewSecure!99
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/ChangePasswordUsingSecretText"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ChangePasswordUsingSecretText xmlns="http://tempuri.org/">
<userName>jsmith</userName>
<secretText>3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c</secretText>
<newPassword>NewSecure!99</newPassword>
</ChangePasswordUsingSecretText>
</soap:Body>
</soap:Envelope>
secretText format: The token must be a valid GUID string. Any other format (e.g. a plain word or partial GUID) is rejected immediately before any database lookup.GetAuthenticationAndPasswordPolicy. If the new password does not comply, the call fails with a descriptive policy error message.userName and secretText from the emailed link and pass them to this API.| Error | Description |
|---|---|
Invalid or expired reset code |
The secretText is not a valid GUID, does not match the stored token for the given user, or the token has expired |
User not found |
The userName does not correspond to any user account in the system |
External authentication -" password cannot be changed |
The user’s account is managed by an external authentication source (LDAP, AD, etc.) and the password cannot be changed via infoRouter |
New password cannot be the same as old password |
The supplied newPassword is identical to the user’s current password |
| Password policy violation message | The newPassword does not meet the configured complexity requirements (the exact message describes the unmet rule) |