summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod_auth_custom/mod_auth_custom.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod_auth_custom/mod_auth_custom.lua b/mod_auth_custom/mod_auth_custom.lua
index 9b2ea14..d48f4eb 100644
--- a/mod_auth_custom/mod_auth_custom.lua
+++ b/mod_auth_custom/mod_auth_custom.lua
@@ -24,10 +24,10 @@ function test_password(username, password)
24 local f = io.open("/tmp/auth_debug", "a"); 24 local f = io.open("/tmp/auth_debug", "a");
25 local responses = {} 25 local responses = {}
26 for i,m in ipairs(t) do 26 for i,m in ipairs(t) do
27 if m[1] == pam.PAM_PROMPT_ECHO_OFF then 27 if m[1] == pam.PROMPT_ECHO_OFF then
28 f:write("sending password\n"); 28 f:write("sending password\n");
29 responses[i] = {password, 0}; 29 responses[i] = {password, 0};
30 elseif m[1] == pam.PAM_PROMPT_ECHO_ON then 30 elseif m[1] == pam.PROMPT_ECHO_ON then
31 f:write("sending username\n"); 31 f:write("sending username\n");
32 responses[i] = {username, 0}; 32 responses[i] = {username, 0};
33 else 33 else