mod_auth_external/mod_auth_external.lua
changeset 1343 7dbde05b48a9
parent 1195 f502cbffbdd4
child 1593 3e4d15ae2133
child 2001 199fb0a82c0a
--- a/mod_auth_external/mod_auth_external.lua	Mon Mar 10 08:22:58 2014 +0000
+++ b/mod_auth_external/mod_auth_external.lua	Tue Mar 11 18:44:01 2014 +0100
@@ -85,11 +85,11 @@
 
 function do_query(kind, username, password)
 	if not username then return nil, "not-acceptable"; end
-	
+
 	local query = (password and "%s:%s:%s:%s" or "%s:%s:%s"):format(kind, username, host, password);
 	local len = #query
 	if len > 1000 then return nil, "policy-violation"; end
-	
+
 	if script_type == "ejabberd" then
 		local lo = len % 256;
 		local hi = (len - lo) / 256;
@@ -97,7 +97,7 @@
 	elseif script_type == "generic" then
 		query = query..'\n';
 	end
-	
+
 	local response, err = send_query(query);
 	if not response then
 		log("warn", "Error while waiting for result from auth process: %s", err or "unknown error");