Software /
code /
prosody-modules
Changeset
365:1d95b69c2c81
mod_register_json: Corrected typo.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Tue, 12 Apr 2011 22:57:34 +0000 |
parents | 364:1edd3f7c749c |
children | 366:c2554fee5c21 |
files | mod_register_json/mod_register_json.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_register_json/mod_register_json.lua Tue Apr 12 22:51:39 2011 +0000 +++ b/mod_register_json/mod_register_json.lua Tue Apr 12 22:57:34 2011 +0000 @@ -94,10 +94,10 @@ -- 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"]); - module:log("debug", "%s registration data submission for %s is successful", user, req_body["user"]); + module:log("debug", "%s registration data submission for %s is successful", user, req_body["username"]); return http_response(200, "Done."); else - module:log("debug", "%s registration data submission for %s failed (user already exists)", user, req_body["user"]); + module:log("debug", "%s registration data submission for %s failed (user already exists)", user, req_body["username"]); return http_response(409, "User already exists."); end end