Changes the password of the user.
Namespace:
Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)
Syntax
C# |
---|
public static VGPasswordModificationState ChangePassword( string name, string oldPassword, string newPassword, string passwordConfirmation ) |
Visual Basic (Declaration) |
---|
Public Shared 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
The status of the modification. Values are defined in VGPasswordModificationStatus value.Remarks
This method allows changing password only for Visual Guard user. It does not support password modification for database account or Windows account.
Exceptions
Exception | Condition |
---|---|
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. |