This commit is contained in:
piair 2023-07-01 14:28:04 +02:00
parent 2253506f80
commit 0d9c128a2c
2 changed files with 20 additions and 17 deletions

View File

@ -368,7 +368,6 @@ def config_get():
@app.route("/config/", methods=["POST"])
def config_post():
action = request.form
print(action)
with open("/app/MsRewards-Reborn/user_data/proxy.json", "r") as inFile:
proxys = json.load(inFile)
with open("/app/MsRewards-Reborn/user_data/discord.json", "r") as inFile:
@ -376,6 +375,10 @@ def config_post():
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
configs = json.load(inFile)
if action["data"] == "delete":
print(action["config"])
configs.pop(action["config"])
else :
comptes = {
"1":{"mail": action["mail1"], "pwd": action["pwd1"], "2fa": action["2fa1"]},
"2":{"mail": action["mail2"], "pwd": action["pwd2"], "2fa": action["2fa2"]},

View File

@ -128,7 +128,7 @@
<input type="submit" class="confirm" name="data" id="submit" value="Create !" class="button"/>
</td>
<td class="left-button">
<input type="submit" name="config" id="submit" value="delete" class="ban"/>
<input type="submit" name="data" id="submit" value="delete" class="ban"/>
</td>
</tr>
</table>