• Resolved benspell

    (@benspell)


    Hello,

    I’m using lifterlms for a training website as well as force-login to make the site private. I add users and then they can login from there.

    the website address is leapnlearncertification.com but it’s locked so I don’t know how much you can see.

    My users are having issues resetting their passwords as the link on the login screen is now to /my-courses/lost-password rather than the default wordpress lost password reset link. Any ideas of what would be causing this?

    Thanks so much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @benspell,

    Since you’re not using any of our frontend for login / pass resets and etc you’ll need to remove the filter we use to redirect the lost password (default WP screen) to our custom one.

    You can use this code:

    remove_filter( 'lostpassword_url', 'llms_lostpassword_url', 10, 0 );

    If that doesn’t work you may need to wait until WP is fully initialized to remove the filter. This would mean that our filter is not added at the point when you’re trying to remove it. In which case you can do this:

    
    add_action( 'init', 'my_late_init' );
    function my_late_init() {
    	remove_filter( 'lostpassword_url',  'llms_lostpassword_url', 10, 0 );
    }
    

    You can add that to a functions.php file or to a custom plugin.

    Sorry there’s not an easier solution but that’ll do the trick,

    Thread Starter benspell

    (@benspell)

    Thanks so much, the first option seemed to work for me. I appreciate the help.

    Ben

    @benspell,

    woot woot!

    Any other questions you know where to find me,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘password reset link broken’ is closed to new replies.