diff options
-rw-r--r-- | conf.py | 1 | ||||
-rw-r--r-- | conf/conf.cfg-sample | 1 | ||||
-rw-r--r-- | pyaggr3g470r/__init__.py | 2 |
3 files changed, 1 insertions, 3 deletions
@@ -28,7 +28,6 @@ WEBSERVER_HOST = config.get('webserver', 'host') WEBSERVER_PORT = int(config.get('webserver', 'port')) WEBSERVER_USERNAME = config.get('webserver', 'username') WEBSERVER_PASSWORD = config.get('webserver', 'password') -WEBSERVER_SECRETKEY = config.get('webserver', 'secretkey') MAIL_HOST = config.get('mail', 'host') MAIL_PORT = int(config.get('mail', 'port')) diff --git a/conf/conf.cfg-sample b/conf/conf.cfg-sample index fe8c243c..8dda63d8 100644 --- a/conf/conf.cfg-sample +++ b/conf/conf.cfg-sample @@ -14,7 +14,6 @@ host = 0.0.0.0 port = 5000 username = admin password = e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4 -secretkey = 123456790 [mail] host = port = 25 diff --git a/pyaggr3g470r/__init__.py b/pyaggr3g470r/__init__.py index f5d9b852..d4079300 100644 --- a/pyaggr3g470r/__init__.py +++ b/pyaggr3g470r/__init__.py @@ -18,7 +18,7 @@ app = Flask(__name__) app.debug = True # Create dummy secrey key so we can use sessions -app.config['SECRET_KEY'] = conf.WEBSERVER_SECRETKEY +app.config['SECRET_KEY'] = os.urandom(12) app.config['MONGODB_SETTINGS'] = {'DB': conf.DATABASE_NAME} app.config["MAIL_SERVER"] = conf.MAIL_HOST |