Click or drag to resize

AccountClientAccountPasswordReset Method

Enables an Account holder to set the Account Password using a valid Reset Password Request RSN.
Remarks
  • Current Account Status must be Active
  • Reset Password Request RSN 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
  • Reset Password Request RSN is generated by the Web Service Method: Request Management Group Account Password Request
Syntax
C#
public ResultOfboolean AccountPasswordReset(
	AccountPasswordReset accountPasswordReset1
)

Parameters

accountPasswordReset1
Type: AccountServiceAccountPasswordReset

Return Value

Type: ResultOfboolean
Examples
C#
using (var svc = new AccountService.AccountClient())
{
  //This method does not require a Token
  var request = new AccountService.AccountPasswordReset();
  request.RequestRSN = new Guid("eb263bb9-d357-4cbe-bda0-c7ed5672465e");; //Required - The password reset request rsn recieved via email from AccountService.RequestManagementGroupAccountPasswordReset
  request.NewPassword = "New password";  //Required - Password must be between 8 and 20 characters long and include at least one letter and one number.
  request.EmailTemplate = "PASSWORD_RESET_TEMPLATE_ID"; //Optional - Will send a confirmation email, if undefined no confirmation email is sent.

  AccountService.ResultOfboolean result = svc.AccountPasswordReset(request);

  if (result.Value)
  {
    //Request succeded
  }
  else
  {
    //Request failed (no FaultCode or FaultDescription available)
    throw new Exception(result.FaultDescription);
  }
}
See Also