Check token before attempting to confirm

This commit is contained in:
Mark Veidemanis 2022-08-13 20:55:36 +01:00
parent 92df4fb9a3
commit ad7a5cfe49
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})