ChangePasswordQuestionAndAnswer Method
From MySQL Connector.Net
|
|
| MySQL Connector/Net |
| MySQLMembershipProvider..::..ChangePasswordQuestionAndAnswer Method |
| MySQLMembershipProvider Class See Also Send Feedback |
|
|
Changes the password question and answer.
Namespace: MySql.Web.Security
Assembly: MySql.Web (in MySql.Web.dll) Version: 6.8.4.0
Syntax
| C# |
|---|
public override bool ChangePasswordQuestionAndAnswer( string username, string password, string newPwdQuestion, string newPwdAnswer ) |
| Visual Basic |
|---|
Public Overrides Function ChangePasswordQuestionAndAnswer ( _ username As String, _ password As String, _ newPwdQuestion As String, _ newPwdAnswer As String _ ) As Boolean |
| Visual C++ |
|---|
public: virtual bool ChangePasswordQuestionAndAnswer( String^ username, String^ password, String^ newPwdQuestion, String^ newPwdAnswer ) override |
Parameters
- username
- Type: System..::..String
The username.
- password
- Type: System..::..String
The password.
- newPwdQuestion
- Type: System..::..String
The new password question.
- newPwdAnswer
- Type: System..::..String
The new password answer.
Return Value
true if the update was successful; otherwise, false. A value of false is also returned if the password is incorrect, the user is locked out, or the user does not exist in the database.
See Also