summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-04-13 01:09:54 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-04-13 01:09:54 +0200
commit56414122a1bde2bd45b2bba590ee8f1a6bb40648 (patch)
tree49897716ef5b060aed2c9f61de5bcc05bb7f2d83 /Bugzilla/Constants.pm
parent0354373916176c202632a7cb8965b1afd578ab8d (diff)
downloadbugzilla-56414122a1bde2bd45b2bba590ee8f1a6bb40648.tar.gz
bugzilla-56414122a1bde2bd45b2bba590ee8f1a6bb40648.tar.xz
Bug 349337: The time between two successive token requests should be a constant
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index 279405c74..e4d32d435 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -140,6 +140,7 @@ use Memoize;
MAX_SUDO_TOKEN_AGE
MAX_LOGIN_ATTEMPTS
LOGIN_LOCKOUT_INTERVAL
+ ACCOUNT_CHANGE_INTERVAL
MAX_STS_AGE
SAFE_PROTOCOLS
@@ -409,6 +410,10 @@ use constant MAX_LOGIN_ATTEMPTS => 5;
# account is locked.
use constant LOGIN_LOCKOUT_INTERVAL => 30;
+# The time in minutes a user must wait before he can request another email to
+# create a new account or change his password.
+use constant ACCOUNT_CHANGE_INTERVAL => 10;
+
# The maximum number of seconds the Strict-Transport-Security header
# will remain valid. Default is one week.
use constant MAX_STS_AGE => 604800;