bon j'y crois, tout marche

This commit is contained in:
piair 2023-10-04 18:40:49 +02:00
parent 35ae711c45
commit 7d79b727a9
4 changed files with 3 additions and 4 deletions

View File

@ -174,6 +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}"])
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,

View File

@ -7,7 +7,7 @@
<button class="unselected" onclick="location.href = '/login';">login</button> <button class="unselected" onclick="location.href = '/login';">login</button>
{% else %} {% else %}
<form method="post" action="/override/"> <form method="post" action="/schedule/">
<table> <table>
{% for i in data %} {% for i in data %}
<tr> <tr>

View File

@ -22,9 +22,7 @@
<h2>TODO</h2> <h2>TODO</h2>
<ul> <ul>
<li>real override</li>
<li>ban button</li> <li>ban button</li>
<li>synchroniser le mot de passe de grafana et celui du bot</li>
</ul> </ul>
<br><br> <br><br>
<h2>Backup config files</h2> <h2>Backup config files</h2>

View File

@ -1 +1 @@
v6.6.51 v6.7.0