Reset negative pass status when requesting recheck

This commit is contained in:
2022-08-14 23:58:35 +01:00
parent d68f0589cb
commit d46c98a211
2 changed files with 7 additions and 4 deletions

View File

@@ -239,11 +239,11 @@ class API(object):
return dumps({"success": False, "reason": f"failed to get instances for {net_name}."})
if func == "recheckauth":
for conn in conns:
conn.regPing()
conn.regPing(reset=True)
elif func == "resetauth":
for conn in conns:
conn.authenticated = False
conn.regPing()
conn.regPing(reset=True)
elif func == "register":
for conn in conns:
regproc.registerAccount(conn.net, conn.num)