PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 260917
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v260917
260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 All 189 releases
← All changes | src/includes/classes/brute-force.inc.php +2 -1 260814260917 View file →
@@ -93,9 +93,10 @@
93 93 && c_ws_plugin__s2member_utils_conds::pro_is_installed()
94 94 && c_ws_plugin__s2member_pro_remote_ops::is_remote_op('auth_check_user')
95 95 ) $ip = $GLOBALS['s2member_pro_remote_op_auth_check_user_ip'];
96 96
97 - if((int)get_transient('s2m_ipr_'.md5('s2member_transient_failed_login_attempts_'.$ip)) > $max)
97 + //260902.0444 The transient counts failures already completed; reaching the configured allowance means the next authentication must be blocked.
98 + if((int)get_transient('s2m_ipr_'.md5('s2member_transient_failed_login_attempts_'.$ip)) >= $max)
98 99 {
99 100 $exp_secs = strtotime('+'.apply_filters('ws_plugin__s2member_track_failed_logins__exp_time', '30 minutes', get_defined_vars())) - time();
100 101 // If you add Filters to this value, you should use a string that is compatible with PHP's strtotime() function.
101 102