"arevico-security-top"); function __construct() { add_action( 'admin_menu', array($this,'add_menus' ) ); add_action( 'admin_enqueue_scripts', array($this,'add_admin_assets') ); add_action( 'admin_init', array($this,'reg_set')); } /* * Add all menus */ public function add_menus(){ add_submenu_page( 'options-general.php','Arevico Security', 'Arevico Security', 'manage_options', $this->slugs['top'], array($this,'do_page')); } /* * Add all javascript and css on those pages which need them */ public function add_admin_assets(){ if (!empty($_GET['page']) && in_array($_GET['page'], array_values($this->slugs) ) ){ wp_enqueue_style( 'arevico-tab-css-admin',plugins_url('/admin-assets/style.css',__FILE__ )); wp_enqueue_script('arevico-tab-js-admin',plugins_url('/admin-assets/tabs.js',__FILE__), array( 'jquery' ) ); } } /* * Whitelist our settigns so we may store them */ public function reg_set(){ register_setting("arevico-security-grp", 'arevico-security', array($this, 'dummysanitize') ); } public function dummysanitize($set=""){ return $set; } /* = = = = = = = = = = = = = = = = = = THE VIEW PROCEEDS FROM HERE = = = = = = = = = = = = = = = = = = = = = = = = */ public function do_page(){ $o = get_option('arevico-security',array ( 'pwd_req_inval_time' => '90', 'cem_message' => 'Wrong information! Make sure to login using your email!', 'lockout' => '123', 'lockout_time' => '3600', 'lock_message' => 'Too many failed login attempts, account is locked. Try later this day!', 'lock_subject' => '{$user_name} was locked out', 'lock_email' => "Hi {\$user_name}, Too many failed login attempts were detected, your account was locked. You can use the following link to unlock your account again: \n\{$link}\n\nI'm sorry for the inconvenience\n\nRegards,\nThe Administrator\n")); ?>
Rate & review this plugin.
Login Obscurity /> Require users to login with registered email.

 
Password Strength Require strong password
/> Capital letter.
/> Special character (~!@#$%^&*()?{}[]/ or \).
/> Number(s).
/> Require password reset if current password is not compliant.


Password Invalidation /> Invalidate password after
days

 
Custom Login Error Message /> Generalize failed login error to:

Lockout />Lockout an account after
Attemps for

Lockout Message
 
Lockout email subject /> Send lockout link when a user tries to log into an locked account

Lockout email subject
Lockout message