master
Aevann1 2021-12-19 14:09:26 +02:00
parent 69a68e564c
commit 8ac4a3250e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()