Plugin Directory

User Locker

This plugin locks user account after given number of incorrect login attempts. This makes brute force and dictionary attacks nearly impossible.

How can I integrate my plugin with User Locker?

User Locker provides special functions (placed in "Public functions" section in code). I recommend to use them instead of calling methods of UserLocker class directly - the latter ones may change without any notice. There are also few hooks which you can use too.

There are following functions and hooks available:

  • function user_locker_lock_user( $user_id, $reason = '' ) - Lock user account (user may unlock it by requesting new password). Parameters: User ID; New lock reason (may be empty string) or False to do not update lock reason. This function calls the user_locker_lock_user after locking user account with one parameter - User ID;
  • function user_locker_unlock_user( $user_id, $reason = false ) - Unlock user account. Parameters: User ID; New lock reason (may be empty string) or False to do not update lock reason. This function calls the user_locker_unlock_user after unlocking user account with one parameter - User ID;
  • function user_locker_disable_user( $user_id, $reason = '' ) - Disable user account (user cannot enable it, only admin can do this). Parameters: User ID; New disable reason (may be empty string) or False to do not update disable reason. This function calls the user_locker_disable_user after disabling user account with one parameter - User ID;
  • function user_locker_enable_user( $user_id, $reason = false ) - Enable user account. Parameters: User ID; New disable reason (may be empty string) or False to do not update disable reason. This function calls the user_locker_enable_user after enabling user account with one parameter - User ID;

Requires: 2.7 or higher
Compatible up to: 3.2.9
Last Updated: 2011-10-24
Downloads: 36,215

Average Rating

4 stars
(22 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1
100,1,1
100,1,1
100,1,1 100,2,2 100,8,8
100,3,3
100,1,1
100,1,1 100,3,3
100,1,1
100,2,2