cookie name helps with multiple sites in same domain

This commit is contained in:
ville rantanen
2018-07-21 17:23:22 +03:00
parent 46ef4f2856
commit bd301eca6f

View File

@@ -30,6 +30,7 @@ app.config['UID'] = config_values['uid']
app.config['GID'] = config_values['gid'] app.config['GID'] = config_values['gid']
app.config['DEBUG'] = config_values['debug'] app.config['DEBUG'] = config_values['debug']
app.config['VERSION_FOLDER'] = config_values['version_folder'] app.config['VERSION_FOLDER'] = config_values['version_folder']
app.config['SESSION_COOKIE_NAME'] = secure_filename(config_values['site_name'])
if 'notifier' in config_values: if 'notifier' in config_values:
if len(config_values['notifier']) > 0: if len(config_values['notifier']) > 0:
notifier_config = config_values['notifier'].split(":") notifier_config = config_values['notifier'].split(":")