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 VGPasswordModificationState ChangePassword(
	string name,
	string oldPassword,
	string newPassword,
	string passwordConfirmation
)
Visual Basic
Public 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
A VGPasswordModificationState representing the status of the modification.

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