Changeset

710:b0c0acccd7c4

mod_register_json: corrected trace.
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 11 Jun 2012 00:35:26 +0000
parents 709:151743149f07
children 711:53afd87f3612 752:9bbd99f2057a
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	Sat Jun 09 23:15:44 2012 +0200
+++ b/mod_register_json/mod_register_json.lua	Mon Jun 11 00:35:26 2012 +0000
@@ -87,7 +87,7 @@
 					if os_time() - recent_ips[req_body["ip"]] < throttle_time then
 						recent_ips[req_body["ip"]] = os_time()
 						module:log("warn", "JSON Registration request from %s has been throttled.", req_body["ip"])
-						return http_response(503, "Woah... How many users you want to register..? Request throttled, wait a bit and try again.")
+						return http_response(event, 503, "Woah... How many users you want to register..? Request throttled, wait a bit and try again.")
 					end
 					recent_ips[req_body["ip"]] = os_time()
 				end