Check token before attempting to confirm

This commit is contained in:
Mark Veidemanis 2022-08-13 20:55:36 +01:00
parent 2e57e0930a
commit b83062c34f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 1 deletions

View File

@ -588,5 +588,6 @@ class API(object):
if not len(spl) == 2:
return dumps({"success": False, "reason": f"malformed item: {item}"})
net, num = spl
if token:
regproc.confirmAccount(net, num, token)
return dumps({"success": True})