Implement API for authentication management actions

This commit is contained in:
2022-08-14 12:43:33 +01:00
parent 5123941c79
commit eba2c387f0
5 changed files with 99 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
import main
from utils.get import getRelay
class GetstrCommand:
def __init__(self, *args):
self.getstr(*args)
@@ -11,7 +11,7 @@ class GetstrCommand:
if length == 3:
net = spl[1]
num = spl[2]
if not net in main.network.keys():
if net not in main.network.keys():
failure("Network does not exist: %s" % net)
return
if not num.isdigit():