diff mod_register_json/mod_register_json.lua @ 356:5dacfbc9cd86

mod_register_json: Fixed missing close quote.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 12 Apr 2011 15:36:30 +0000
parents a5da789b2e7d
children 59345fd38ad9
line wrap: on
line diff
--- a/mod_register_json/mod_register_json.lua	Tue Apr 12 15:25:37 2011 +0000
+++ b/mod_register_json/mod_register_json.lua	Tue Apr 12 15:36:30 2011 +0000
@@ -53,7 +53,7 @@
 		if req_body["password"]:match("%s") then module:log("debug", "Password submitted for user registration by %s contained spaces.", user); return http_response(400, "Supplied user passwords can't contain spaces."); end
 		-- We first check if the supplied username for registration is already there.
 		if not usermanager.user_exists(req_body["username"], req_body["host"]) then
-			usermanager.create_user(req_body["username"], req_body["password"], req_body["host]);
+			usermanager.create_user(req_body["username"], req_body["password"], req_body["host"]);
 			module:log("debug", "%s registration data submission for %s is successful", user, req_body["user"]);
 			return http_response(200, "Done.");
 		else