Click or drag to resize

VGMembershipInstanceChangePassword Method (String, String, String)

Updates the password for the membership user in the Visual Guard repository.

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public bool ChangePassword(
	string username,
	string oldPassword,
	string newPassword
)

Parameters

username
Type: SystemString
The user to update the password for.
oldPassword
Type: SystemString
The current password for the membership user.
newPassword
Type: SystemString
The new password for the membership user.

Return Value

Type: Boolean
true if the update was successful; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionusername or oldPassword or newPasswordis null
ArgumentExceptionoldPassword or newPassword is longer than 64 characters.

username is empty or is longer than 64 characters or contains invalid chars ('\', '/', '?', '*', '%', ';', ''', '"', ':', '|', '[', ']', '+', '=', ',').

See Also