Implement API call to register

This commit is contained in:
2022-08-14 16:26:09 +01:00
parent 9864b4e2b5
commit f6f515b308
3 changed files with 8 additions and 7 deletions

View File

@@ -244,6 +244,9 @@ class API(object):
for conn in conns:
conn.authenticated = False
conn.regPing()
elif func == "register":
for conn in conns:
regproc.registerAccount(conn.net, conn.num)
return dumps({"success": True})
@app.route("/irc/network/<net>/", methods=["DELETE"])