Take default crappy secret key from config.py

This forces anyone installing Pillar to actually generate a proper secret.
This commit is contained in:
2017-05-18 13:07:09 +02:00
parent 4ad82a1eb3
commit e4f221ab13
3 changed files with 8 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ class PillarServer(Eve):
# self.settings = self.config['EVE_SETTINGS_PATH']
self.load_config()
if not self.config.get('SECRET_KEY'):
raise ConfigurationMissingError('SECRET_KEY configuration key is missing')
# Configure authentication
self.login_manager = auth.config_login_manager(self)
self.oauth_blender_id = auth.config_oauth_login(self)