• hdiueidh

    (@hdiueidh)


    I see many people asking where the errors are stored for this plugin, but i don’t see any answers. We have custom login pages, so the plugin is not showing the error on the page.

    We have used Limit Login Attempts on many sites and are updating to the “reloaded” version. In the old plugin, we could use the code below to grab the login error and assign it to the login window.

    if (should_limit_login_show_msg() || $limit_login_my_error_shown) {
    $msg = limit_login_get_message();
    if ($msg != ”) {
    $limit_login_my_error_shown = true;
    $args[‘message’] = $msg;
    }

    I don’t see similar functions to this in the new plugin. Can someone advise?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hdiueidh

    (@hdiueidh)

    Well, this doesn’t seem like the greatest option, but, for lack of a better one, this will extract the error messages for the login page.

    $LLAobj = new Limit_Login_Attempts();
    $args[‘message’] = $LLAobj->get_message();

    I tried using the object defined in the plugin, but it is not available on the login page for some reason.

    This is better

    <?php echo $limit_login_attempts_obj->get_message(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error messages on custom login pages’ is closed to new replies.