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, 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: