Click or drag to resize

VGSecurityManagerChangePassword Method

Changes the password of the user.

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public static VGPasswordModificationState ChangePassword(
	string name,
	string oldPassword,
	string newPassword,
	string passwordConfirmation
)

Parameters

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

Return Value

Type: VGPasswordModificationState
The status of the modification. Values are defined in VGPasswordModificationStatus value.
Exceptions
ExceptionCondition
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.

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