Implement re-checking and resetting authentication status

This commit is contained in:
2022-08-14 12:43:13 +01:00
parent 67afe92195
commit 3671d94e59
4 changed files with 96 additions and 22 deletions

View File

@@ -246,3 +246,10 @@ def irc_enable_auth(net, num):
payload = {}
enabled = threshold_request(url, payload, method="POST")
return enabled
def irc_check_auth(data):
url = "irc/network/auth"
payload = data
updated = threshold_request(url, payload, method="POST")
return updated