DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Reset password does not work when setting a custom login page

 1 Replies
 0 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 4
New Around Here
New Member
New Member
You are a new member!
New Poster
New Poster
Congrats on posting!

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

 

New Around Here
Posts: 4
New Around Here
New Member
New Member
You are a new member!
New Poster
New Poster
Congrats on posting!

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:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved