diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-18 21:41:50 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-18 21:41:50 +0100 |
commit | a2336c5de836267a4e88961422fc3f26cedab47e (patch) | |
tree | 18dbc1fb5d09cba02f5c54cae764f3610570d3ff /src/conf.py | |
parent | fix migration script (diff) | |
download | newspipe-a2336c5de836267a4e88961422fc3f26cedab47e.tar.gz newspipe-a2336c5de836267a4e88961422fc3f26cedab47e.tar.bz2 newspipe-a2336c5de836267a4e88961422fc3f26cedab47e.zip |
we now specify the validity period of the activation link.
Diffstat (limited to 'src/conf.py')
-rw-r--r-- | src/conf.py | 2 |
1 files changed, 2 insertions, 0 deletions
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') |