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
 | 
					    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, 
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user