diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-14 12:28:41 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-14 12:28:41 +0100 |
commit | 491108a46811b824508ee16fb02070f8d5a49e1a (patch) | |
tree | e23a2e4a15c1920281df5444c248757a0afc4ee2 /src/bootstrap.py | |
parent | article URL resolving has been removed (wasn't used) (diff) | |
download | newspipe-491108a46811b824508ee16fb02070f8d5a49e1a.tar.gz newspipe-491108a46811b824508ee16fb02070f8d5a49e1a.tar.bz2 newspipe-491108a46811b824508ee16fb02070f8d5a49e1a.zip |
more simple to just use os.urandom for the secret key.
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r-- | src/bootstrap.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py index 24d6ff27..f7a3754c 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -39,10 +39,8 @@ application.config['PREFERRED_URL_SCHEME'] = scheme set_logging(conf.LOG_PATH, log_level=conf.LOG_LEVEL) -# Create dummy secrey key so we can use sessions -application.config['SECRET_KEY'] = getattr(conf, 'WEBSERVER_SECRET', None) -if not application.config['SECRET_KEY']: - application.config['SECRET_KEY'] = os.urandom(12) +# Create secrey key so we can use sessions +application.config['SECRET_KEY'] = os.urandom(12) application.config['RECAPTCHA_USE_SSL'] = True application.config['RECAPTCHA_PUBLIC_KEY'] = conf.RECAPTCHA_PUBLIC_KEY |