WEBWebUserChangePassword

Initial Build

2008.01

xWEB

Web Method

Response Type

boolean

This method is used to change a Web User's password. If the change is successful, the force user to change password on next login flag is also cleared (if it had been set to true).

Parameters

  • recno (string).
  • oldPassword (string).
  • newPassword (string).

Response

Boolean—true if the change succeeds. If the oldPassword is wrong, or the recno doesn't exist, or if other failures occur, then false is returned.

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBWebUserChangePassword>
<ns:recno>82457</ns:recno>
<ns:oldPassword>123</ns:oldPassword>
<ns:newPassword>12345678</ns:newPassword>
</ns:WEBWebUserChangePassword>
</soapenv:Body>
</soapenv:Envelope>

Sample Response

Shortened for brevity.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBWebUserChangePasswordResponse xmlns="http://www.avectra.com/2005/">
<WEBWebUserChangePasswordResult>true</WEBWebUserChangePasswordResult>
</WEBWebUserChangePasswordResponse>
</soap:Body>
</soap:Envelope>
   

JSON Method

To get the customers "recno" value, use the "WEBWebUserLogin" method with the email and old password.

The response contains the recno.

Then use the recno, the old password and the new password to update the password.

GET /xweb/JSON/WEBWebUserChangePassword?recno=240656&oldPassword=Pa%24%24w0rd&newPassword=Pa%24%24w0RD

POST /JSON/WEBWebUserChangePassword

Copy
DATA: JSON
{
    "WEBWebUserChangePassword": {
        "recno": "240656",
        "oldPassword": "Pa$$w0rd",
        "newPassword": "Pa$$w0RD"
    }
}

 

Copy
SAMPLE RESULT
HTTP STATUS: 200
true