Implement manual authentication mode

This commit is contained in:
2022-08-14 13:13:05 +01:00
parent eba2c387f0
commit b5e78bc4de
3 changed files with 22 additions and 4 deletions

View File

@@ -668,5 +668,5 @@ class API(object):
num = int(num)
if num not in main.network[net].relays.keys():
return dumps({"success": False, "reason": f"no relay {num} on {net}"})
regproc.enableAuthentication(net, num)
regproc.enableAuthentication(net, num, jump=False, run_now=True)
return dumps({"success": True})