From 19df1e3f4b27523f8f401a78ca8747dbfbb5fcfe Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Wed, 19 Oct 2016 14:04:07 +0100 Subject: [PATCH] Ensure SECURITY_PASSWORD_SALT is set to something when initialising (to avoid errors, prior to being set to the 'real' value). Fixes #1871 --- web/setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/setup.py b/web/setup.py index 12465f366..c3d3b3606 100755 --- a/web/setup.py +++ b/web/setup.py @@ -437,6 +437,8 @@ Exiting...""" % (version.value)) config.SECRET_KEY = base64.urlsafe_b64encode(os.urandom(32)) config.SECURITY_PASSWORD_SALT = base64.urlsafe_b64encode(os.urandom(32)) + app.config.from_object(config) + directory = os.path.dirname(config.SQLITE_PATH) if not os.path.exists(directory): os.makedirs(directory, int('700', 8))