From a2336c5de836267a4e88961422fc3f26cedab47e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 18 Feb 2016 21:41:50 +0100 Subject: we now specify the validity period of the activation link. --- src/conf.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/conf.py') diff --git a/src/conf.py b/src/conf.py index 1cef95dc..0fcb330e 100644 --- a/src/conf.py +++ b/src/conf.py @@ -28,6 +28,7 @@ DEFAULTS = {"platform_url": "https://jarr.herokuapp.com/", "postmark_api_key": "", "recaptcha_public_key": "", "recaptcha_private_key": "", + "token_validity_period": "3600", "nb_worker": "100", "api_login": "", "api_passwd": "", @@ -79,6 +80,7 @@ RECAPTCHA_PUBLIC_KEY = config.get('misc', 'recaptcha_public_key') RECAPTCHA_PRIVATE_KEY = config.get('misc', 'recaptcha_private_key') SECURITY_PASSWORD_SALT = config.get('misc', 'security_password_salt') +TOKEN_VALIDITY_PERIOD = config.getint('misc', 'token_validity_period') LOG_PATH = os.path.abspath(config.get('misc', 'log_path')) NB_WORKER = config.getint('misc', 'nb_worker') API_LOGIN = config.get('crawler', 'api_login') -- cgit