Visual Guard Class Library Documentation

VGSecurityRuntime.ChangePassword Method 

Changes the password of the user.

public VGPasswordModificationState ChangePassword(
   String name,
   String oldPassword,
   String newPassword,
   String passwordConfirmation
);

Parameters

name
the name of the user.
oldPassword
the old password of the given user.
newPassword
the new password of the given user.
passwordConfirmation
the confirmation of the new password.

Return Value

A VGPasswordModificationState representing the status of the modification.

Exceptions

Exception Type Condition
ArgumentNullException

The name, old password, the new password or the password confirmation is null.

ArgumentException

The length name, old password, new password or password confirmation is greater than 64 characters

The name is empty.

NotSupportedException

the repository does not support Visual Guard authentication mode.

The name is empty.

See Also

VGSecurityRuntime Class | Novalys.VisualGuard.Security Namespace | ValidatingPassword