Check token before attempting to confirm
This commit is contained in:
parent
2e57e0930a
commit
b83062c34f
|
@ -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
|
||||||
|
if token:
|
||||||
regproc.confirmAccount(net, num, token)
|
regproc.confirmAccount(net, num, token)
|
||||||
return dumps({"success": True})
|
return dumps({"success": True})
|
||||||
|
|
Loading…
Reference in New Issue