Visual Guard Class Library Documentation

VGSecurityManager.ChangePassword Method 

Changes the password of the user.

public static 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

The status of the modification. Values are defined in VGPasswordModificationStatus value.

Remarks

This method allows changing password only for Visual Guard user. It does not support password modification for database account or Windows account.

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

VGSecurityManager Class | Novalys.VisualGuard.Security Namespace | ValidatingPassword