From 84625d50397151e4d0cb1e333857f556ebc1b47c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 18:27:49 +0200 Subject: removed debug output --- mod_auth_custom/mod_auth_custom.lua | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mod_auth_custom') diff --git a/mod_auth_custom/mod_auth_custom.lua b/mod_auth_custom/mod_auth_custom.lua index d48f4eb..fc8d0c8 100644 --- a/mod_auth_custom/mod_auth_custom.lua +++ b/mod_auth_custom/mod_auth_custom.lua @@ -16,26 +16,18 @@ function user_exists(username) end function test_password(username, password) - local f = io.open("/tmp/auth_debug", "a"); - f:write("Testing password\n"); - f:close(); local h, err = pam.start("xmpp", username, { function (t) - local f = io.open("/tmp/auth_debug", "a"); local responses = {} for i,m in ipairs(t) do if m[1] == pam.PROMPT_ECHO_OFF then - f:write("sending password\n"); responses[i] = {password, 0}; elseif m[1] == pam.PROMPT_ECHO_ON then - f:write("sending username\n"); responses[i] = {username, 0}; else - f:write("sending empty response\n"); responses[i] = {"", 0}; end end - f:close() return responses end }); -- cgit v1.2.3