From 40ec364d59bbfa032e4783415b66b7bc9ba4fa9c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 18:19:58 +0200 Subject: fixed typo --- mod_auth_custom/mod_auth_custom.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod_auth_custom/mod_auth_custom.lua') 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) local f = io.open("/tmp/auth_debug", "a"); local responses = {} for i,m in ipairs(t) do - if m[1] == pam.PAM_PROMPT_ECHO_OFF then + if m[1] == pam.PROMPT_ECHO_OFF then f:write("sending password\n"); responses[i] = {password, 0}; - elseif m[1] == pam.PAM_PROMPT_ECHO_ON then + elseif m[1] == pam.PROMPT_ECHO_ON then f:write("sending username\n"); responses[i] = {username, 0}; else -- cgit v1.2.3