AccountClientUpdateAccountPassword Method |
Enables an Account holder to set the Account Password using a valid Token.
Remarks
- Current Account Status must be Active
- Token has an expiry of a configurable value, and must be used within this timeframe to be valid
- New Password must adhere to the Password Rules
- Token is supplied from Web Service Methods: Management Group Login or Management Group Authenticate
Syntax
Examples
using (var svc = new AccountService.AccountClient())
{
var request = new AccountService.ManagementGroupRequestOfManagementGroupUpdateCredentials();
request.Token = "Token";
request.ManagementGroup = "Management group";
var credentials = new AccountService.ManagementGroupUpdateCredentials();
credentials.AccountName = "Account name";
credentials.ManagementGroup = "Management group";
credentials.SecurityCode = "Current password";
credentials.NewSecurityCode = "New password";
request.Value = credentials;
AccountService.Result result = svc.UpdateAccountPassword(request);
if (result.FaultCode == 0)
{
}
else
{
throw new Exception(result.FaultDescription);
}
}
See Also