Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Brute_Force

s2member\includes\classes\brute-force.inc.php at line #28

Class c_ws_plugin__s2member_brute_force

c_ws_plugin__s2member_brute_force

public class c_ws_plugin__s2member_brute_force

s2Member's Brute Force protection routines.

Since:

3.5


( 2 Methods )
Method Summary
public static obj|null

stop_brute_force_logins(obj $user)

Stops anyone attempting a Brute Force attack.

public static null

track_failed_logins(str $username)

Tracks failed login attempts.

( 2 Methods )
Method Detail

s2member\includes\classes\brute-force.inc.php at line #77

stop_brute_force_logins()

public static obj|null stop_brute_force_logins(obj $user)

Stops anyone attempting a Brute Force attack.

Prevents an attacker from guessing Usernames/Passwords. Allows only 5 failed login attempts every 30 minutes.

Since:

3.5

Attaches-to:

add_filter("authenticate");

Parameters:

obj $user - Expects a WP_User object, or possibly a null value. This parameter value is simply passed through this routine.

Returns:

obj|null - Either null, the $user obj, or a WP_Error obj.

[ back to top ]

s2member\includes\classes\brute-force.inc.php at line #44

track_failed_logins()

public static null track_failed_logins(str $username)

Tracks failed login attempts.

Prevents an attacker from guessing Usernames/Passwords. Allows only 5 failed login attempts every 30 minutes.

Since:

3.5

Attaches-to:

add_action("wp_login_failed");

Parameters:

str $username - Expects the $username to be passed in through the Hook.

Returns:

null

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail