Changeset

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 355:a5da789b2e7d
children 357:59345fd38ad9
files mod_register_json/mod_register_json.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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