Changeset

992:794817421fc6

mod_register_json: added missing parameter to some http_response calls.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 30 Apr 2013 01:12:26 +0200
parents 991:929dcf3c4bcb
children 993:8b14cdfe0213
files mod_register_json/register_json/mod_register_json.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_json/register_json/mod_register_json.lua	Mon Apr 29 23:39:21 2013 +0200
+++ b/mod_register_json/register_json/mod_register_json.lua	Tue Apr 30 01:12:26 2013 +0200
@@ -117,12 +117,12 @@
 			-- Blacklist can be checked here.
 			if blacklist:contains(ip) then 
 				module:log("warn", "Attempt of reg. submission to the JSON servlet from blacklisted address: %s", ip)
-				return http_response(403, "The specified address is blacklisted, sorry.") 
+				return http_response(event, 403, "The specified address is blacklisted, sorry.") 
 			end
 
 			if not check_mail(mail) then
 				module:log("warn", "%s attempted to use a mail address (%s) matching one of the forbidden patterns.", ip, mail)
-				return http_response(403, "Requesting to register using this E-Mail address is forbidden, sorry.")
+				return http_response(event, 403, "Requesting to register using this E-Mail address is forbidden, sorry.")
 			end
 
 			-- We first check if the supplied username for registration is already there.