diff options
author | Byron Jones <glob@mozilla.com> | 2015-09-23 05:54:41 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-23 05:54:41 +0200 |
commit | 043c7523acd6af5288191b15f746fc360b73ab40 (patch) | |
tree | 536980970ca7ae13ce29d4cf9e9f69fb0669a972 /Bugzilla/Constants.pm | |
parent | 2e425408eeb1065eacb4bcded2cc88d05a689e1c (diff) | |
download | bugzilla-043c7523acd6af5288191b15f746fc360b73ab40.tar.gz bugzilla-043c7523acd6af5288191b15f746fc360b73ab40.tar.xz |
Bug 1199087 - extend 2fa protection beyond login
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 59796a076..2fd6a23b1 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -173,6 +173,7 @@ use Memoize; ON_ACTIVESTATE MAX_TOKEN_AGE + MAX_SHORT_TOKEN_HOURS MAX_LOGINCOOKIE_AGE MAX_SUDO_TOKEN_AGE MAX_LOGIN_ATTEMPTS @@ -469,6 +470,8 @@ use constant TIMETRACKING_FIELDS => # The maximum number of days a token will remain valid. use constant MAX_TOKEN_AGE => 3; +# The maximum number of hours a short-lived token will remain valid. +use constant MAX_SHORT_TOKEN_HOURS => 1; # How many days a logincookie will remain valid if not used. use constant MAX_LOGINCOOKIE_AGE => 7; # How many seconds (default is 6 hours) a sudo cookie remains valid. |