Fix Grafana on Linux: named volume for data; re-sync password on login

This commit is contained in:
Steffen Skui
2026-07-21 21:54:49 +02:00
parent b98c4a6a6e
commit a0ef60fa71
2 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -151,8 +151,10 @@ def login():
if not _has_password():
return redirect(url_for("setup"))
if request.method == "POST":
if _check_password(request.form.get("password", "")):
pw = request.form.get("password", "")
if _check_password(pw):
session["authed"] = True
_sync_grafana_password(pw) # self-heal if the setup-time sync missed
return redirect(url_for("index"))
flash("Wrong password.", "error")
return render_template("auth.html", mode="login")