Support » Plugin: Limit Login Attempts » Limit Login Attempts in combination with Theme My Login

  • doppiej

    (@doppiej)


    Hello,

    I have a problem with Limit Login Attempts in combination with Theme My Login.
    The user will log in on the frontend of the website. Their profile page is also on the frontend where they edit their username and password etc.
    Actually on this page is also shown the amount of attempts remaining, but I don’t know how to remove this from all the pages except the login page.

    Does anybody know?

    Thanks in advance

    http://wordpress.org/plugins/limit-login-attempts/

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

    (@doppiej)

    I made a workaround with this:

    function limit_login_add_error_message() {
    	global $error, $limit_login_my_error_shown;
    
    	if ( !is_user_logged_in() ) {
    		if (!should_limit_login_show_msg() || $limit_login_my_error_shown) {
    			return;
    		}
    
    		$msg = limit_login_get_message();
    
    		if ($msg != '') {
    			$limit_login_my_error_shown = true;
    			$error .= $msg;
    		}
    
    		return;
    	}else{
    		return;
    	}
    }

    Now it shows the errors only if the user is logged out.

    Is the amount of wrong guesses reset? Or when I have 1 attempt left will it stay 1 until I do it wrong again?

    doppiej

    (@doppiej)

    Hmm, now it is still showing up on the registration page and password forgotten page.
    Any way to remove it over there?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit Login Attempts in combination with Theme My Login’ is closed to new replies.