XF 2.2 Password Reset Email Button

cloudpro

Member
Hello

It appears the clickable button in password reset emails is no longer there.

All members get is the password reset URL which they then have to copy and paste in their browser.

I have looked at the email template howeve I am a little unsure what to add ( and which one ).

Below is the current email template -

Edit template: user_lost_password_reset​


Code:
<mail:subject>
    {{ phrase('user_lost_password_reset_subject', {'boardTitle': $xf.options.boardTitle}) }}
</mail:subject>

{{ phrase('user_lost_password_reset_body_html', {
    'username': $user.username,
    'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}

<p><a href="{{ link('canonical:index') }}" class="button">{{ phrase('log_in') }}</a></p>

I can see the button code in the last line but this never appears. It is also possible I am looking at the wrong area.

I have also attached the actual email that is sent.

Thank you very much.Screenshot 2025-05-28 at 10.10.30.webp
 
Did you just try simply reverting the template? If modified? (revert button at top left of the template edit page)

The default template looks like this in XF 2.3.x:

Code:
<mail:subject>
    {{ phrase('user_lost_password_reset_subject', {'boardTitle': $xf.options.boardTitle}) }}
</mail:subject>

{{ phrase('user_lost_password_reset_body_html', {
    'username': $user.username,
    'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}

<p><a href="{{ link('canonical:index') }}" class="button">{{ phrase('log_in') }}</a></p>

The above template generates the button correctly.

Custom style or using default XF?
 
Do you happen to have the Multiple Emails Addon installed? If so, disable it and see what happens. This may be connected to my other report about the email confirmations button.
Hi

Thank you for your info.

We are using a custom style however the default template for the password reset if the same as you posted.

Yes we do have that addon installed. Ill disable it and check again and update here.
 
Back
Top Bottom