ChangePassword Method

MySQL Connector/Net

Changes the password.

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

Syntax

C#
public override bool ChangePassword(
	string username,
	string oldPassword,
	string newPassword
)
Visual Basic (Declaration)
Public Overrides Function ChangePassword ( _
	username As String, _
	oldPassword As String, _
	newPassword As String _
) As Boolean
Visual C++
public:
virtual bool ChangePassword(
	String^ username, 
	String^ oldPassword, 
	String^ newPassword
) override

Parameters

username
Type: System..::.String
The username.
oldPassword
Type: System..::.String
The old password.
newPassword
Type: System..::.String
The new password.

Return Value

true if the password was updated successfully, false if the supplied old password is invalid, the user is locked out, or the user does not exist in the database.

See Also