AI Assistant
Notifications
Clear all

[Closed] Password Reset Link in Registration Email

1 Posts
1 Users
0 Reactions
1,869 Views
Posts: 63
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@hshah)
Trusted Member
Joined: 7 years ago
[#9746]

So I have been battling with getting my emails looking all nice and pretty, and I have managed to make progress with applying headers and footers in SendGrid.

 

Whilst doing all this, I came across this post:

https://wpforo.com/community/how-to-and-troubleshooting-2/activation-link-is-broken-registration-key-is-invalid/

 

@Anonymous20 - you asked why there were <> around the link... well it is because it has been coded that way in wpforo:

 

$set_password_url = '<' . wpforo_home_url( '?wpforo=resetpassword&rp_key='.esc_attr( $key ).'&rp_login='.rawurlencode( $user->user_login ) ) . '>';

 

Interestingly, the reset_password_url doesn't have the same <>:

$reset_password_url = wpforo_home_url( '?wpforo=resetpassword&rp_key='.esc_attr( $key ).'&rp_login='.rawurlencode( $user_login ) );

 

@Robert - why the inconsistencies? I have currently changed the wpf-hooks.php file myself to work around this but can you provide a function that I can use elsewhere to fix this issue please?

Share: