WordPress.org

Ready to get started?Download WordPress

Forums

Limit Login Attempts
Limit Login Attempts in combination with Theme My Login (3 posts)

  1. doppiej
    Member
    Posted 9 months ago #

    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/

  2. doppiej
    Member
    Posted 9 months ago #

    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?

  3. doppiej
    Member
    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.