Changes the password of the user.
Namespace:
Novalys.VisualGuard.Security.WebFormAssembly: Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 3.2.912.1 (3.2.912.01)
Syntax
C# |
---|
public override bool ChangePassword( string username, string oldPassword, string newPassword ) |
Visual Basic (Declaration) |
---|
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
The status of the modification. Values are defined in VGPasswordModificationStatus value.Exceptions
Exception | Condition |
---|---|
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. |