WebSecurity Object
The ChangePassword() method changes the password for a specified user.
| Parameter | Type | Description |
|---|---|---|
| userName | String | The user name |
| oldPassword | String | The user's old password |
| newPassword | String | The new password |
| Type | Description |
|---|---|
| Boolean | true if the password is changed, otherwise false |
Any access to the WebSecurity object throws an InvalidOperationException if:
| Name | Value |
|---|---|
| Namespace | WebMatrix.WebData |
| Assembly | WebMatrix.WebData.dll |
WebSecurity Object
Your message has been sent to W3Schools.