DNN Forums

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

the password reset link has expired

 9 Replies
 0 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 3
New Around Here

We wanted to reset the user passsword in DNN 9 but failed because the link sent via email expired when clicked. (the password reset link has expired)

 

image

 

 

image

image

Growing Member
Posts: 34
Growing Member
New Poster
New Poster
Congrats on posting!

It seems that you use a custom admin module.
By default, the password reset link will expire after 60 minutes due to security aspects. You can change this settings in the security tab.
Regarding your screen copy, I noticed that you probably already logged in with the superuser account when you clicked on the reset link. Consequently, the reset link should not correspond to the current user session. I suggest you to try again after log out in your browser to check if the reset link works.

New Around Here
Posts: 3
New Around Here
  1. By default, the password reset link will expire after 60 minutes due to security aspects. You can change this settings in the security tab.
    "we have change the time to 1440 minutes but problem still exists"
  2.  I suggest you to try again after log out in your browser to check if the reset link works.
    "since this is a reset password, the user are unable to login before launching the link"

is there anything else we can do to solve this problem??

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Also, if I remember correctly, the password reset link intentionally doesn't work for superuser accounts.  You can only use it for Admins and lower.  Another superuser account must allow in a superuser that can't log in.  I could be wrong though.  This could have changed, as I haven't tested this recently.  

Growing Member
Posts: 34
Growing Member
New Poster
New Poster
Congrats on posting!

What I wanted to say is that your screenshot shows that you've got the message when you already logged with the superuser account (look at the current user which is displayed at the right top corner).

New Around Here
Posts: 3
New Around Here

oh right. thank you for pointing that out. we have tried various scenarios including opening link in incognito browser. There is already a clearer problem where if the password reset using dnn9 is possible but the failure occurs at the time of custom module.

Senior Member
Posts: 1325
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

We just had a client that reported that the Password Reset links did not work correctly in DNN 9.13.3
After clicking the reset link they got a message it had expired.
I checked the database (users Table) and the [PasswordResetToken] and the [PasswordResetExpiration] fields had the correct values.

After bit of searching I saw others have reported similar issues so I'll share how we "fixed" this for future reference.

The client installation started in DNN 5 and has been updated over the years.
The client already had a custom text for the password reset before and I found that

Site Settings > (*) Site > Global Resources > GlobalResources > EMAIL_PASSWORD_REMINDER_BODY.Text

(editing GlobalResources.nl-NL.Portal-0.resx)

Contained an incorrect link (from an older version of DNN)

<code>&#91;Portal:PASSWORDREMINDERURL&#93;default.aspx?ctl=PasswordReset&resetToken=&#91;Membership:PasswordResetToken&#93;</code>

After we changed that to:

<code>&#91;Portal:PASSWORDREMINDERURL&#93;?ctl=PasswordReset&resetToken=&#91;Membership:PasswordResetToken&#93;</code>

The password reset link worked correctly again.
Might not be your issue, but it might help other with this problem...?

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Posted By Timo Breumelhof (40F) on 3/26/2024 5:24 AM

We just had a client that reported that the Password Reset links did not work correctly in DNN 9.13.3
After clicking the reset link they got a message it had expired.
I checked the database (users Table) and the [PasswordResetToken] and the [PasswordResetExpiration] fields had the correct values.

After bit of searching I saw others have reported similar issues so I'll share how we "fixed" this for future reference.

The client installation started in DNN 5 and has been updated over the years.
The client already had a custom text for the password reset before and I found that

Site Settings > (*) Site > Global Resources > GlobalResources > EMAIL_PASSWORD_REMINDER_BODY.Text

(editing GlobalResources.nl-NL.Portal-0.resx)

Contained an incorrect link (from an older version of DNN)

<code>&#91;Portal:PASSWORDREMINDERURL&#93;default.aspx?ctl=PasswordReset&resetToken=&#91;Membership:PasswordResetToken&#93;</code>

After we changed that to:

<code>&#91;Portal:PASSWORDREMINDERURL&#93;?ctl=PasswordReset&resetToken=&#91;Membership:PasswordResetToken&#93;</code>

The password reset link worked correctly again.
Might not be your issue, but it might help other with this problem...?

Whoa...  Nice find!!!  💪🏽😎 

 

Veteran Member
Posts: 370
Veteran Member
5 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
5 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

Thanks for sharing Timo!

Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Posted By Timo Breumelhof (40F) on 3/26/2024 8:24 AM

We just had a client that reported that the Password Reset links did not work correctly in DNN 9.13.3
After clicking the reset link they got a message it had expired.
I checked the database (users Table) and the [PasswordResetToken] and the [PasswordResetExpiration] fields had the correct values.

After bit of searching I saw others have reported similar issues so I'll share how we "fixed" this for future reference.

The client installation started in DNN 5 and has been updated over the years.
The client already had a custom text for the password reset before and I found that

Site Settings > (*) Site > Global Resources > GlobalResources > EMAIL_PASSWORD_REMINDER_BODY.Text

(editing GlobalResources.nl-NL.Portal-0.resx)

Contained an incorrect link (from an older version of DNN)

<code>&#91;Portal:PASSWORDREMINDERURL&#93;default.aspx?ctl=PasswordReset&resetToken=&#91;Membership:PasswordResetToken&#93;</code>

After we changed that to:

<code>&#91;Portal:PASSWORDREMINDERURL&#93;?ctl=PasswordReset&resetToken=&#91;Membership:PasswordResetToken&#93;</code>

The password reset link worked correctly again.
Might not be your issue, but it might help other with this problem...?

 

Great catch Timo!

 

David Poindexter


Creator:


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