Check token before attempting to confirm
This commit is contained in:
parent
92df4fb9a3
commit
ad7a5cfe49
|
@ -588,5 +588,6 @@ class API(object):
|
||||||
if not len(spl) == 2:
|
if not len(spl) == 2:
|
||||||
return dumps({"success": False, "reason": f"malformed item: {item}"})
|
return dumps({"success": False, "reason": f"malformed item: {item}"})
|
||||||
net, num = spl
|
net, num = spl
|
||||||
regproc.confirmAccount(net, num, token)
|
if token:
|
||||||
|
regproc.confirmAccount(net, num, token)
|
||||||
return dumps({"success": True})
|
return dumps({"success": True})
|
||||||
|
|
Loading…
Reference in New Issue