From 8ac4a3250ee43d475d1e2c7a39e0775adc63b8bf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Dec 2021 14:09:26 +0200 Subject: [PATCH] fdsfsd --- files/__main__.py | 2 +- files/routes/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index d9dbd4b2d..52c340d0d 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -62,7 +62,7 @@ app.config["RATELIMIT_DEFAULTS_DEDUCT_WHEN"]=lambda:True app.config["RATELIMIT_DEFAULTS_EXEMPT_WHEN"]=lambda:False app.config["RATELIMIT_HEADERS_ENABLED"]=True app.config["CACHE_TYPE"] = "filesystem" -app.config["CACHE_DIR"] = "/cache" +app.config["CACHE_DIR"] = "cache" app.config["RATELIMIT_STORAGE_URL"] = environ.get("REDIS_URL", "redis://localhost") app.config['MAIL_SERVER'] = 'smtp.gmail.com' app.config['MAIL_PORT'] = 587 diff --git a/files/routes/settings.py b/files/routes/settings.py index 24c1a3357..a272cf50b 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -657,7 +657,7 @@ def settings_security_post(v): @validate_formkey def settings_log_out_others(v): - if user_id in (PW1_ID,PW2_ID): abort(403) + if v.id in (PW1_ID,PW2_ID): abort(403) submitted_password = request.values.get("password", "").strip()