Merge pull request 'Fix multiple crashes' (#7) from augustin64/MsRewards-Reborn:augustin64-patch-1 into master
Tu es dur avec le « multiple crashes »
This commit is contained in:
commit
fc8e666927
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user