overload will validate the token and if valid change the password
it does not require an old password as it supports hashed passwords
errorMessage will define why reset failed
Namespace: DotNetNuke.Entities.UsersAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
[ObsoleteAttribute("Deprecate in 7.4.2, Use ChangePasswordByToken(int portalid, string username, string newPassword, string answer, string resetToken, out string errorMessage).")] public static bool ChangePasswordByToken( int portalid, string username, string newPassword, string resetToken, out string errorMessage ) |
Visual Basic |
---|
<ObsoleteAttribute("Deprecate in 7.4.2, Use ChangePasswordByToken(int portalid, string username, string newPassword, string answer, string resetToken, out string errorMessage).")> Public Shared Function ChangePasswordByToken ( portalid As Integer, username As String, newPassword As String, resetToken As String, <OutAttribute> ByRef errorMessage As String ) As Boolean |
Parameters
- portalid
- Type: System..::..Int32
paramportalidM:DotNetNuke.Entities.Users.UserController.ChangePasswordByToken(System.Int32,System.String,System.String,System.String,System.String@)
- username
- Type: System..::..String
paramusernameM:DotNetNuke.Entities.Users.UserController.ChangePasswordByToken(System.Int32,System.String,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.
- errorMessage
- Type: System..::..String%
paramerrorMessageM:DotNetNuke.Entities.Users.UserController.ChangePasswordByToken(System.Int32,System.String,System.String,System.String,System.String@)