From 0091006aadb5dd7c4b720701f348ed50a8a104b4 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Fri, 7 Sep 2018 20:04:35 +0200 Subject: [PATCH] Fix #611 Fix for #615 --- cps/web.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/cps/web.py b/cps/web.py index 2a9f6d47..dcc8d2cc 100644 --- a/cps/web.py +++ b/cps/web.py @@ -57,10 +57,7 @@ from flask_principal import Principal from flask_principal import __version__ as flask_principalVersion from flask_babel import Babel from flask_babel import gettext as _ - import requests -# import zipfile -# import tarfile from werkzeug.security import generate_password_hash, check_password_hash from werkzeug.datastructures import Headers from babel import Locale as LC @@ -86,6 +83,8 @@ import converter import tempfile import hashlib from redirect import redirect_back +import time +import server try: from urllib.parse import quote @@ -98,11 +97,6 @@ try: except ImportError: from flask_login.__about__ import __version__ as flask_loginVersion -# import codecs -import time -import server -# import random - current_milli_time = lambda: int(round(time.time() * 1000)) @@ -2772,6 +2766,7 @@ def view_configuration(): @app.route("/config", methods=["GET", "POST"]) @unconfigured def basic_configuration(): + logout_user() return configuration_helper(1) @@ -2893,7 +2888,7 @@ def configuration_helper(origin): if content.config_logfile != to_save["config_logfile"]: # check valid path, only path or file if os.path.dirname(to_save["config_logfile"]): - if os.path.exists(os.path.dirname(to_save["config_log_level"])): + if os.path.exists(os.path.dirname(to_save["config_logfile"])): content.config_logfile = to_save["config_logfile"] else: ub.session.commit()