• Resolved 2candela2

    (@2candela2)


    Hello and thanks for your plugin

    I use to protect from brute force attacks my site a plugin that changes the login url. You can get the login url with this WordPress function:

    wp_login_url()

    In the body email, you change **loginurl** and **passwordreseturl** writing it in import-users-from-csv-with-meta/importer.php

    559: $body_mail = str_replace( "**loginurl**", "<a href='" . home_url() . "/wp-login.php" . "'>" . home_url() . "/wp-login.php" . "</a>", $body_mail );

    564: $body_mail = str_replace( "**passwordreseturl**", network_site_url( 'wp-login.php?action=rp&key=' . $key . '&login=' . rawurlencode( $user_login ), 'login' ), $body_mail );

    That makes 404 page in my site. Please change both cases with the function. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @2candela2,

    Yes sure, in next version I will do it.

    Stay tuned I will do it surely tomorrow.

    Thanks for your idea.

    Plugin Author Javier Carazo

    (@carazo)

    @2candela2,

    I have been able to do the first one but yes, the reset password link is not possible to do.

    In WordPress core this is coded in the same way:

    network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login')

    So we cannot change it. We may solve your problem but we will create a problem in all network users.

    If you have some idea about how to do it for every users, tell me and we study it.

    Anyway to let you solve it I have added a filter that you can manage:

    							$passwordreseturl = apply_filters( 'acui_email_passwordreseturl', network_site_url( 'wp-login.php?action=rp&key=' . $key . '&login=' . rawurlencode( $user_login ), 'login' ) );
    							$body_mail = str_replace( "**passwordreseturl**", $passwordreseturl, $body_mail );
    

    Please consider to leave a good review or make some donation, it is hard to do free plugin, with not support of the users.

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

The topic ‘Make it compatible with plugins that change login url’ is closed to new replies.