mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-04 07:33:53 +01:00 
			
		
		
		
	bon j'y crois, tout marche
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user