Initiates the self-service password-reset flow for the infoRouter user with the specified login name. The server generates a one-time reset token and sends a password-reset email to the address registered on that account. The token is then used with ChangePasswordUsingSecretText to set a new password.
This is the login-name variant of ForgotPassword. Use it when the user knows their user name but not the email address associated with their account, or when the calling application works with user names rather than email addresses.
No authentication ticket is required.
/srv.asmx/ForgotPasswordByUserName
/srv.asmx/ForgotPasswordByUserName?userName=.../srv.asmx/ForgotPasswordByUserName (form data)http://tempuri.org/ForgotPasswordByUserName| Parameter | Type | Required | Description |
|---|---|---|---|
userName |
string | Yes | The infoRouter login name of the user requesting a password reset. Must not be empty. |
Note: This method does not require an
authenticationTicket.
<root success="true" />
<root success="false" error="Error message" />
GET /srv.asmx/ForgotPasswordByUserName?userName=jsmith HTTP/1.1
Host: server.example.com
POST /srv.asmx/ForgotPasswordByUserName HTTP/1.1
Content-Type: application/x-www-form-urlencoded
userName=jsmith
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/ForgotPasswordByUserName"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ForgotPasswordByUserName xmlns="http://tempuri.org/">
<userName>jsmith</userName>
</ForgotPasswordByUserName>
</soap:Body>
</soap:Envelope>
Once the API returns success, the user receives an email at their registered address containing a reset link in the form:
https://yourserver/resetpassword.aspx?username=jsmith&secretText=3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c
The secretText value (a GUID) and the username from this link are then passed to ChangePasswordUsingSecretText together with the desired new password to complete the reset.
userName is unique in infoRouter, exactly one account is processed per call -“ unlike ForgotPassword which may match multiple accounts sharing the same email address.userName returns an error immediately without any database lookup.userName does not exist. Applications wishing to avoid user-name enumeration should suppress this error response before presenting feedback to end users.ForgotPassword to initiate a reset by registered email address instead of login name.| Error | Description |
|---|---|
User name field cannot be empty. |
The userName parameter was empty or not supplied |
User not found |
No infoRouter account exists with the specified userName |
| Email send failure message | The SMTP service failed to deliver the reset email |