bon j'y crois, tout marche
This commit is contained in:
parent
35ae711c45
commit
7d79b727a9
@ -174,6 +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}"])
|
||||
with open("/app/MsRewards-Reborn/user_data/flask.json", "w") as inFile:
|
||||
data = {
|
||||
"password": password,
|
||||
|
@ -7,7 +7,7 @@
|
||||
<button class="unselected" onclick="location.href = '/login';">login</button>
|
||||
{% else %}
|
||||
|
||||
<form method="post" action="/override/">
|
||||
<form method="post" action="/schedule/">
|
||||
<table>
|
||||
{% for i in data %}
|
||||
<tr>
|
||||
|
@ -22,9 +22,7 @@
|
||||
|
||||
<h2>TODO</h2>
|
||||
<ul>
|
||||
<li>real override</li>
|
||||
<li>ban button</li>
|
||||
<li>synchroniser le mot de passe de grafana et celui du bot</li>
|
||||
</ul>
|
||||
<br><br>
|
||||
<h2>Backup config files</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user