From cc051aea4cdd82b615be75a97df2c420cae8bd30 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Fri, 23 Feb 2024 08:46:29 +0100 Subject: [PATCH 1/2] 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, -- 2.47.1 From 9682b95001fd7dc4a1f3a6a320f63fc3297d9d28 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Fri, 23 Feb 2024 08:49:00 +0100 Subject: [PATCH 2/2] Fix OTP not working in very custom start --- V6.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/V6.py b/V6.py index 21d0a7c..6c10bd2 100755 --- a/V6.py +++ b/V6.py @@ -836,6 +836,9 @@ def very_custom_start(json): cred = g._cred[i] g._mail = cred[0] g._password = cred[1] + if cred[2] != '': + g._otp = TOTP(cred[2]) + start = False for j in ["unban", "tout", "pc", "mobile", "daily"]: try: -- 2.47.1