• Resolved scarlywebs

    (@scarlywebs)


    Hey Bowo!
    I have a question about the password reset link. Currently, I changed my login URL to example: domainname.com/mylogin and that works great but how can I use the password reset link? The password link is still set to domainname.com/wp-login.php?action=lostpassword so it just goes straight to the error page.

    I did also try a code someone said I could use to fix that, but it doesn’t work for some reason. I don’t receive any errors, it just stays on the main login page not moving. If I change the “return site_url” to another page on the domain it works fine, so it definitely something I am missing. What do you think?

    Here is the action hook they used:

    add_filter( ‘lostpassword_url’, ‘change_lostpassword_url’, 10, 0 );
    function change_lostpassword_url() {
    return site_url(‘/mylogin?/action=lostpassword’);
    }

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Bowo

    (@qriouslad)

    @scarlywebs thank you for reporting this. I haven’t tested the lost password URL when implementing this feature. I have looked at it and have a fix that will be included in the next release. Meanwhile, if you want it sooner, please add the following code in the /classes/class-login-logout.php file around line 33, after the “Exclude interim login URL” section:

    if ( false !== strpos( $url_input, 'action=lostpassword' ) ) {
    	remove_action( 'login_head', [ $this, 'redirect_on_default_login_urls' ] );
    }

    Let me know if that works for you.

    Plugin Author Bowo

    (@qriouslad)

    @scarlywebs on second thought, I’ve released it as a quick patch in v5.0.2.1. Please update and test on your end. Let me know how it goes.

    Thread Starter scarlywebs

    (@scarlywebs)

    @qriouslad thanks for the quick hotfix that fixed it!

    Thread Starter scarlywebs

    (@scarlywebs)

    Hey, @qriouslad after testing the password reset link find just one issue. After you input the email address to reset the password the confirmation page just directs to the error page lol.

    Can you fix also the confirmation page?
    Image of the confirmation page that is supposed to show: https://snipboard.io/GobfIa.jpg

    Plugin Author Bowo

    (@qriouslad)

    @scarlywebs lol. Thanks for testing all the way. I’ve released another fix for the entire password reset flow’s URLs. Please update to v5.0.2.2.

    Thread Starter scarlywebs

    (@scarlywebs)

    haha sorry, i tested everything, it works now thanks for help! XD

    Plugin Author Bowo

    (@qriouslad)

    @scarlywebs no worries! Haha. Thanks again!

    Plugin Author Bowo

    (@qriouslad)

    @scarlywebs hey, I just realized I don’t have your email. ASE Pro is going to be available soon. Please head over to https://bowo.io and contact me there so I have your email. Happy to provide early access and special discount should you be interested.

    Thread Starter scarlywebs

    (@scarlywebs)

    Hey @qriouslad for sure! Would love to check it out! I sent you my email.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Password Reset URL LInk’ is closed to new replies.