overload will validate the token and if valid change the password
it does not require an old password as it supports hashed passwords
Namespace: DotNetNuke.Entities.UsersAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static bool ChangePasswordByToken( int portalid, string username, string newPassword, string resetToken ) |
Visual Basic |
---|
Public Shared Function ChangePasswordByToken ( portalid As Integer, username As String, newPassword As String, resetToken As String ) As Boolean |
Parameters
- portalid
- Type: System..::..Int32
paramportalidM:DotNetNuke.Entities.Users.UserController.ChangePasswordByToken(System.Int32,System.String,System.String,System.String)
- username
- Type: System..::..String
paramusernameM:DotNetNuke.Entities.Users.UserController.ChangePasswordByToken(System.Int32,System.String,System.String,System.String)
- newPassword
- Type: System..::..String
The new password.
- resetToken
- Type: System..::..String
The reset token, typically supplied through a password reset email.