Easy Tutorial
❮ Home Control Listbox ❯

WebSecurity - ChangePassword()



Definition

The ChangePassword() method changes the password for the specified user.


C# and VB Syntax


Parameters

Parameter Type Description
userName String The user name
oldPassword String The user's old password
newPassword String The new password

Return Value

Type Description
Boolean Returns true if the password is changed, otherwise returns false.

Errors and Exceptions

Under the following conditions, any access to the WebSecurity object will throw an InvalidOperationException:


Technical Data

Name Value
Namespace WebMatrix.WebData
Assembly WebMatrix.WebData.dll

❮ Home Control Listbox ❯