Lost-Password link wrong inside error message
-
I’m having trouble with the password-reset function here.
Basically what I would like to do is send my members to wordpress’ classic login-page with it’s own “forgot-password”-page.
I had problems users generating their new password because the plugin ithemes security enforces strong passwords and wordpress has a builtin password-tool that rates user’s passwords with a nice bar.
I was able to change the forgot-password-link with this filter:add_filter( 'wpmem_forgot_link', 'my_forgot_link', 10, 2 ); function my_forgot_link( $link, $tag ) { // Using home_url() instead makes your filter portable. return home_url() . '/wp-login.php?itsec-hb-token=mysupersecretlogin:-&action=lostpassword'; }
However this filter doesn’t work, if you have typed in a valid e-mail and a wrong password. Then a error message appears:
Error: The password you entered for the email address no@mail.com is incorrect. Lost your password?
The lost-password-link there is still the old wp-members-lost-password-link (that you can set by selecting a User Profile Page), not the filtered one.
- The topic ‘Lost-Password link wrong inside error message’ is closed to new replies.