summaryrefslogtreecommitdiff
path: root/classes/config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-12 09:35:01 +0300
committerAndrew Dolgov <[email protected]>2021-03-12 09:35:01 +0300
commit580eccd3da5c968859b293ddcd290acc78705d51 (patch)
tree8aa472416267ce7274953a989b6a545819a8e245 /classes/config.php
parentb9268fcc88f2f2ff03be2ec43f6206350cfc64f7 (diff)
throttle login attempts, controlled by Config::AUTH_MIN_INTERVAL
Diffstat (limited to 'classes/config.php')
-rw-r--r--classes/config.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/config.php b/classes/config.php
index f60b96f2a..6e8d4533f 100644
--- a/classes/config.php
+++ b/classes/config.php
@@ -167,6 +167,9 @@ class Config {
const ENABLE_PLUGIN_INSTALLER = "ENABLE_PLUGIN_INSTALLER";
// allow installing first party plugins using plugin installer in prefs
+ const AUTH_MIN_INTERVAL = "AUTH_MIN_INTERVAL";
+ // minimum amount of seconds required between authentication attempts
+
// default values for all of the above:
private const _DEFAULTS = [
Config::DB_TYPE => [ "pgsql", Config::T_STRING ],
@@ -220,6 +223,7 @@ class Config {
Config::SESSION_NAME => [ "ttrss_sid", Config::T_STRING ],
Config::CHECK_FOR_PLUGIN_UPDATES => [ "true", Config::T_BOOL ],
Config::ENABLE_PLUGIN_INSTALLER => [ "true", Config::T_BOOL ],
+ Config::AUTH_MIN_INTERVAL => [ 5, Config::T_INT ],
];
private static $instance;