Changes the password of the user.

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

Syntax

C#
public VGPasswordModificationState ChangePassword(
	string name,
	string oldPassword,
	string newPassword,
	string passwordConfirmation
)
Visual Basic (Declaration)
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

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