ChangePassword Method
From MySQL Connector.Net
|
|
| MySQL Connector/Net |
| MySQLMembershipProvider..::..ChangePassword Method |
| MySQLMembershipProvider Class See Also Send Feedback |
|
|
Changes the password.
Namespace: MySql.Web.Security
Assembly: MySql.Web (in MySql.Web.dll) Version: 6.8.4.0
Syntax
| C# |
|---|
public override bool ChangePassword( string username, string oldPassword, string newPassword ) |
| Visual Basic |
|---|
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