Changes the password of the user.

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public static VGPasswordModificationState ChangePassword(
	string name,
	string oldPassword,
	string newPassword,
	string passwordConfirmation
)
Visual Basic
Public Shared Function ChangePassword ( 
	name As String,
	oldPassword As String,
	newPassword As String,
	passwordConfirmation As String
) As VGPasswordModificationState

Parameters

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

Return Value

Type: VGPasswordModificationState
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

ExceptionCondition
System..::..ArgumentNullException

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

System..::..ArgumentException

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

The name is empty.

System..::..NotSupportedException

the repository does not support Visual Guard authentication mode.

The name is empty.

See Also