• Hi there,

    Thanks for this plugin! It works nicely, but i’d like to remove the ‘lost password?’ section.
    i removed the ‘lost password’ line from the login-form.php. But when someone enters wrong credentials it still shows:
    ERROR: The username or password you entered is incorrect. Lost your password?

    So i was hoping there is a general option to remove the ‘lost password’ section?

    Cheers, Ed’

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    That line actually comes from WP core.

    Thread Starter eddiebouncer

    (@eddiebouncer)

    Hi, thanks for the reply.

    I’ve placed the altered login-form.php in the child’s theme in the folder theme-my-login. Will the plugin read it correctly then? Or does it need a specific location?

    To correct the line from the WP core, I’ve added the following to functions.php:

    function login_error_message($error){
        //check if that's the error you are looking for
        $pos = strpos($error, 'incorrect');
        if (is_int($pos)) {
            //its the right error so you can overwrite it
            $error = "ERROR: invalid username/password.";
        }
        return $error;
    }

    Thanks again! Ed’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove lost/reset password’ is closed to new replies.