This commit is contained in:
parent
2253506f80
commit
0d9c128a2c
|
@ -368,7 +368,6 @@ def config_get():
|
||||||
@app.route("/config/", methods=["POST"])
|
@app.route("/config/", methods=["POST"])
|
||||||
def config_post():
|
def config_post():
|
||||||
action = request.form
|
action = request.form
|
||||||
print(action)
|
|
||||||
with open("/app/MsRewards-Reborn/user_data/proxy.json", "r") as inFile:
|
with open("/app/MsRewards-Reborn/user_data/proxy.json", "r") as inFile:
|
||||||
proxys = json.load(inFile)
|
proxys = json.load(inFile)
|
||||||
with open("/app/MsRewards-Reborn/user_data/discord.json", "r") as 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:
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
||||||
configs = json.load(inFile)
|
configs = json.load(inFile)
|
||||||
|
|
||||||
|
if action["data"] == "delete":
|
||||||
|
print(action["config"])
|
||||||
|
configs.pop(action["config"])
|
||||||
|
else :
|
||||||
comptes = {
|
comptes = {
|
||||||
"1":{"mail": action["mail1"], "pwd": action["pwd1"], "2fa": action["2fa1"]},
|
"1":{"mail": action["mail1"], "pwd": action["pwd1"], "2fa": action["2fa1"]},
|
||||||
"2":{"mail": action["mail2"], "pwd": action["pwd2"], "2fa": action["2fa2"]},
|
"2":{"mail": action["mail2"], "pwd": action["pwd2"], "2fa": action["2fa2"]},
|
||||||
|
|
|
@ -128,7 +128,7 @@
|
||||||
<input type="submit" class="confirm" name="data" id="submit" value="Create !" class="button"/>
|
<input type="submit" class="confirm" name="data" id="submit" value="Create !" class="button"/>
|
||||||
</td>
|
</td>
|
||||||
<td class="left-button">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue