Skip to content
Snippets Groups Projects
Commit a36f2c02 authored by Julian Rother's avatar Julian Rother
Browse files

Generate random session secret if none is supplied

parent b0ce2e5a
Branches
No related tags found
No related merge requests found
# Defaults for development ,do not use in production!
DEBUG = True
VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de'
#SECRET_KEY = 'something random'
DB_SCHEMA = 'db_schema.sql'
DB_DATA = 'db_example.sql'
......
......@@ -31,6 +31,8 @@ if not sys.argv[0].endswith('run.py'):
config.from_pyfile('config.py', silent=True)
if config['DEBUG']:
app.jinja_env.auto_reload = True
if not config.get('SECRET_KEY', None):
config['SECRET_KEY'] = os.urandom(24)
from db import query, searchquery, ldapauth, ldapget, convert_timestamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment