diff -r 4c19952406db -r 36b287f1d85c plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php Sun Oct 07 17:28:47 2007 -0400
+++ b/plugins/SpecialAdmin.php Sun Oct 07 21:28:36 2007 -0400
@@ -203,6 +203,16 @@
setConfig('pw_strength_minimum', $strength);
}
+ // Account lockout policy
+ if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) )
+ setConfig('lockout_threshold', $_POST['lockout_threshold']);
+
+ if ( preg_match('/^[0-9]+$/', $_POST['lockout_duration']) )
+ setConfig('lockout_duration', $_POST['lockout_duration']);
+
+ if ( in_array($_POST['lockout_policy'], array('disable', 'captcha', 'lockout')) )
+ setConfig('lockout_policy', $_POST['lockout_policy']);
+
echo '
Your changes to the site configuration have been saved.
';
}
@@ -351,6 +361,43 @@
+
+
+ Account lockouts |
+
+ Configure Enano to prevent or restrict logins for a specified period of time if a user enters an incorrect password a specific number of times. |
+
+
+ Lockout threshold:
+ How many times can a user enter wrong credentials before a lockout goes into effect?
+ |
+
+
+ |
+
+
+
+ Lockout duration:
+ This is how long an account lockout should last, in minutes.
+ |
+
+
+ |
+
+
+
+ Lockout policy:
+ What should be done when a lockout goes into effect?
+ |
+
+
+
+
+ |
+
+
+
+
Password strength |
@@ -2685,7 +2732,7 @@
}
else
{
- echo 'Please wait while the administration panel loads. You need to be using a recent browser with AJAX support in order to use Runt.
';
+ echo '';
}
?>