ChangePasswordQuestionAndAnswer Method

MySQL Connector/Net

Changes the password question and answer.

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public override bool ChangePasswordQuestionAndAnswer(
	string username,
	string password,
	string newPwdQuestion,
	string newPwdAnswer
)
Visual Basic (Declaration)
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