Changeset

916:9c5573b389c0

mod_register_json: remove unrequired instruction (since it's done above already).
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 25 Feb 2013 18:23:37 +0100
parents 915:1d03dc7cf28f
children 917:d3497b81a3b5
files mod_register_json/mod_register_json.lua
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.")