forked from piair/MsRewards-Reborn
Fix error when changing password
This commit is contained in:
parent
ef686799a8
commit
cc051aea4c
@ -174,7 +174,7 @@ def change_password():
|
|||||||
global password
|
global password
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
password = request.form["password"]
|
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:
|
with open("/app/MsRewards-Reborn/user_data/flask.json", "w") as inFile:
|
||||||
data = {
|
data = {
|
||||||
"password": password,
|
"password": password,
|
||||||
|
Loading…
Reference in New Issue
Block a user