diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-07-24 10:40:12 +0200 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-07-24 10:40:12 +0200 |
commit | 2816cf0281310bf2a64f29128003ace48874cd70 (patch) | |
tree | 7a66c361d63dadf044c145e96cddcf397f57a72d | |
parent | adc8b82610e17c87abf06d9e5e1bc5873655808d (diff) |
Decrease token validity time.
Change-Id: Ib5fb67ac0cc9e7b295b57776ef47ec8e3f8cfcc9
-rw-r--r-- | app/dashboard/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/dashboard/__init__.py b/app/dashboard/__init__.py index 157d27d..2d778a4 100644 --- a/app/dashboard/__init__.py +++ b/app/dashboard/__init__.py @@ -55,12 +55,12 @@ from utils.backend import ( def generate_csrf_token(): """Custom function for tokens generation. - It returns a CSRF token with a random time limit between 25 and - 180 seconds. + It returns a CSRF token with a random time limit between 20 and + 50 seconds. :return A random CSRF token. """ - return generate_csrf(time_limit=random.randint(25, 180)) + return generate_csrf(time_limit=random.randint(20, 50)) # Name of the environment variable that will be lookep up for app configuration |