Skip to main content

waiting 16 days for a serious bug fix

is there a fix coming for this? i posted this bug issue 16 days ago, and its a pretty fundamental issue... our community members cannot log in:

https://community.wpmanageninja.com/portal/space/community-meta/post/you-are-trying-too-much-please-try-afte

AS W

Have you considered sending a ticket? They always answer within 24-48h thoroughly

Thomas Oates

Shahjahan JewelΒ I might see the problem. In the handleMagicLoginAjax function, this line of code gets the value of the date and time to look back for previous logins.

$dateTime = date('Y-m-d H:i:s', current_time('timestamp') - $timingMinutes * 86400);

I believe the 86400 value should be 60. With the current value, it is checking for the last 30 days, not 30 minutes (assuming default setting of 30 minutes).

The same logic is used inside the checkLoginAttempt function but it does use 60.

$dateTime = date('Y-m-d H:i:s', current_time('timestamp') - $minutes * 60);

Thomas Oates

Shahjahan JewelΒ Additionally, isn't the handleMagicLoginAjax function counting existing logins, not just existing blocked or failed logins?

        $existingCount = flsDb()->table('fls_login_hashes')
            ->where('ip_address', Helper::getIp())
            ->where('created_at', '>', $dateTime)
            ->count();

The checkLoginAttempt function does appear to check for blocked or failed logins, not all logins.

$count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM {$wpdb->prefix}fls_auth_logs WHERE `ip` = %s AND `created_at` > %s AND `status` IN ('failed','blocked')", $ip, $dateTime));

Raiyan Marzan

Thomas Oates That's a valid point and makes a lot of sense. We will include the fix in the upcoming release. Thanks for sharing your perspective!

Thomas Oates

Doug DennisonΒ Doug, assuming my theory is correct, until an official fix is made, have you tried increasing the login try limit from the default 5? Given that is it looking at 30 days instead of 30 minutes (or whatever the setting is set to), increasing the try limit and decreasing the time limit to 1 (1 day) should minimize the chances of it happening.

Raiyan Marzan

Doug Dennison We were unable to reproduce the issue on our end. Could you please create a ticket with your staging site access so we can investigate further? https://wpmanageninja.com/support-tickets/

Thomas Oates

Raiyan MarzanΒ Does the info I posted above make any sense or am I misreading the code?

Raiyan Marzan

Thomas OatesΒ Sorry I didn't notice your comment. Checking now

Doug Dennison

Thomas OatesΒ thanks for your effort with all this. the weird thing is, the failed attempts aren't being logged in fluentauth, so i'm not sure this would make much difference

Raiyan Marzan

Doug DennisonΒ We have identified the issue and will be releasing a fix soon.

Thomas Oates

Doug DennisonΒ Are lots of your users connecting from a central location (office, etc.) behind a firewall? Also, are they getting the error when initiating a magic login or after clicking the link to login?

Doug Dennison

Raiyan MarzanΒ amazing, thank you

Doug Dennison

Raiyan MarzanΒ any update on the fix?

Raiyan Marzan

Doug DennisonΒ We will release the fluentAuth update soon. Sorry for the inconvenient

Doug Dennison

Raiyan MarzanΒ is this update now live or not yet?

Jim Patton

You can set the number of login attempts and the time-out period, but if you then disable these settings, the system doesn't forget and still forbids login attempts that seem to be too many. And the duration setting doesn't matter. It will still forbid subsequent logins. It is most apparent when using magic login or when a user requests a new password and they've received the link via email.

Doug Dennison

Raiyan MarzanΒ is this update now live?

Raiyan Marzan

Doug DennisonΒ Yeah, please update the FluentAuth plugin and check. Let me know if you’re still facing any issues https://wordpress.org/plugins/fluent-security/