We have a custom login module that we have set as the custom login page in site settings > site behaviour.
When this is set the link that is sent to users on Reset Password via email does not work. The link is like so:
"http://localhost/dnn/Registration.aspx?ctl=PasswordReset&resetToken=8ca0a707-dffb-4db7-835e-956f0bd15f15"
But results in the browser going to:
"http://localhost/dnn/CMISLogin.aspx?TabID=151&ctl=PasswordReset&resetToken=51e62623-faf4-4764-939d-6c4e37d66eb8"
and erroring with:
If we do not set the custom login page then the reset link works fine
The issue was being caused by us having a custom registration page set as well. The password reset email link is generated from the PasswordReminderUrl token. When retrieving this value from PortalSettings.cs, if a custom registration page is set then it will try to get the ResetPassword control from that page instead of the default/home. As we had not implemented the ResetPassword control in our module, it resulted in an error.
We considered implementing the control but in the end simply changed the localisation for the EMAIL_PASSWORD_REMINDER_BODY email. Changing [Portal:PASSWORDREMINDERURL] to [Portal:FULLURL]. This results in the link not appending our custom registration page and it working as expected.
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.