From cc051aea4cdd82b615be75a97df2c420cae8bd30 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Fri, 23 Feb 2024 08:46:29 +0100 Subject: [PATCH] Fix error when changing password --- Flask/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flask/app.py b/Flask/app.py index 00461b0..c8c8602 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -174,7 +174,7 @@ def change_password(): global password if request.method == 'POST': password = request.form["password"] - subprocess.Popen([f"grafana-cli admin reset-admin-password {password}"]) + subprocess.Popen(["grafana-cli", "admin", "reset-admin-password", password]) with open("/app/MsRewards-Reborn/user_data/flask.json", "w") as inFile: data = { "password": password,