# HG changeset patch # User Marco Cirillo # Date 1361813017 -3600 # Node ID 9c5573b389c087bb81fb06ba749f2fd1771a1cdb # Parent 1d03dc7cf28f20f49683b904f400d50121055b39 mod_register_json: remove unrequired instruction (since it's done above already). diff -r 1d03dc7cf28f -r 9c5573b389c0 mod_register_json/mod_register_json.lua --- a/mod_register_json/mod_register_json.lua Tue Feb 19 23:53:50 2013 +0100 +++ b/mod_register_json/mod_register_json.lua Mon Feb 25 18:23:37 2013 +0100 @@ -69,7 +69,6 @@ return http_response(event, 400, "JSON Decoding failed.") else -- Decode JSON data and check that all bits are there else throw an error - req_body = json_decode(body) if req_body["username"] == nil or req_body["password"] == nil or req_body["host"] == nil or req_body["ip"] == nil then module:log("debug", "%s supplied an insufficent number of elements or wrong elements for the JSON registration", user) return http_response(event, 400, "Invalid syntax.")