Changes the password of the user.

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

Syntax

C#
public override bool ChangePassword(
	string username,
	string oldPassword,
	string newPassword
)
Visual Basic
Public Overrides Function ChangePassword ( 
	username As String,
	oldPassword As String,
	newPassword As String
) As Boolean

Parameters

username
Type: System..::..String
the user name to change the password for.
oldPassword
Type: System..::..String
the old password of the given user.
newPassword
Type: System..::..String
the new password of the given user.

Return Value

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

Exceptions

ExceptionCondition
System..::..ArgumentNullException

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

System..::..ArgumentException

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

The name is empty.

See Also