diff --git a/api/views.py b/api/views.py index 2e38a2a..e8fc7a1 100644 --- a/api/views.py +++ b/api/views.py @@ -588,5 +588,6 @@ class API(object): if not len(spl) == 2: return dumps({"success": False, "reason": f"malformed item: {item}"}) net, num = spl - regproc.confirmAccount(net, num, token) + if token: + regproc.confirmAccount(net, num, token) return dumps({"success": True})