After upgrading my DNN to the latest version, I came across a "new feature" or "change" with regards to changing a user's password programmatically.
I'm using the following code:
Dim oUser As DotNetNuke.Entities.Users.UserInfo
UserController.ResetPasswordToken(oUser, 2)
Dim sResetToken AsString = oUser.PasswordResetToken.ToString
Dim bPWResult AsBoolean
Try
bPWResult = UserController.ChangePasswordByToken(oUser.PortalID, oUser.Username, sNewPassword, sResetToken)
Catch ex AsException
' unable to update the password in DNN!
pp.Text = "Error: Unable to update your password. Please contact Customer Support."
pp.ShowOnPageLoad = True
Exit Sub
EndTry
This used to work and still does but now it is displaying a "Confirm Password Change" popup with two choices for <> and for host!
This appears to be a Windows popup so is there a setting in IIS that I might have changed? Does anyone have an answer as to how to get rid of this very dangerous popup?
Thanks -- Wayne