If I try to reset password via admin login's "forgot password?" functionality, the link sent to reset password is expired immediately. I have the Recovery Link Expiration Period set to 10 hours. Any ideas?

  • Did you get this fixed? we are having the same issue
    – PaddyD
    Commented May 26, 2022 at 15:12
  • have the same issue.. how did you resolve it?
    – Anthony
    Commented Dec 1, 2022 at 22:01

1 Answer 1


There is a bug in the default email template vendor/magento/module-user/view/adminhtml/email/password_reset_confirmation.html


{{store url="admin/auth/resetpassword/" _query_id=$user.id _query_token=$user.rp_token _nosid=1}}


{{store url="admin/auth/resetpassword/" _query_id=$user.user_id _query_token=$user.rp_token _nosid=1}}

Replace id with user_id.

Of course, you shouldn't do that change in the file directly (otherwise it's gone on the next update), but in a copy in your own theme or by using the "Email Templates" backend functionality.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.