VGSecurityManagerChangePassword Method
|
Changes the password of the user.
Namespace:
Novalys.VisualGuard.Security
Assembly:
Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax public static VGPasswordModificationState ChangePassword(
string name,
string oldPassword,
string newPassword,
string passwordConfirmation
)
Public Shared Function ChangePassword (
name As String,
oldPassword As String,
newPassword As String,
passwordConfirmation As String
) As VGPasswordModificationState
Parameters
- name
- Type: SystemString
the name of the user. - oldPassword
- Type: SystemString
the old password of the given user. - newPassword
- Type: SystemString
the new password of the given user. - passwordConfirmation
- Type: SystemString
the confirmation of the new password.
Return Value
Type:
VGPasswordModificationStateThe status of the modification. Values are defined in
VGPasswordModificationStatus value.
Exceptions Exception | Condition |
---|
ArgumentNullException | The name, old password, the new password or the password confirmation is null. |
ArgumentException | The length name, old password, new password or password confirmation is greater than 64 characters The name is empty. |
NotSupportedException | the repository does not support Visual Guard authentication mode. The name is empty. |
Remarks This method allows changing password only for Visual Guard user. It does not support password modification for database account or Windows account.
See Also