Updates the password question and answer for the membership user in the Visual Guard repository
Namespace: Novalys.VisualGuard.Security.WebFormAssembly: Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 2017.0.101.17 (2017.0.101.17)
Syntax
C# |
---|
public override bool ChangePasswordQuestionAndAnswer( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) |
Visual Basic |
---|
Public Overrides Function ChangePasswordQuestionAndAnswer ( username As String, password As String, newPasswordQuestion As String, newPasswordAnswer As String ) As Boolean |
Parameters
- username
- Type: System..::..String
the username of the membership user.
- password
- Type: System..::..String
The current password for the membership user.
- newPasswordQuestion
- Type: System..::..String
The new password question value for the membership user.
- newPasswordAnswer
- Type: System..::..String
The new password answer value for the membership user.
Return Value
Type: Booleantrue if the update was successful; otherwise, false.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException |
username is null
or password is nullor newPasswordQuestion is null and the RequiresQuestionAndAnswer is set to true.or newPasswordAnswer is null and newPasswordQuestion is not null or empty. |
System..::..ArgumentException |
username is empty or longer than 64 characters.
or password or newPasswordAnswer is longer than 64 characters.or newPasswordQuestion is empty or longer than 256 characters or newPasswordQuestion is empty or null and the repository property "Requires Question And Answer" is set to true. |