diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 18:19:58 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 18:19:58 +0200 |
commit | 40ec364d59bbfa032e4783415b66b7bc9ba4fa9c (patch) | |
tree | b9ce0c3d1521da4e688ffc35952edf24a8bf5543 /mod_auth_custom | |
parent | 2b45e30226650451257f379568545539e64999e1 (diff) | |
download | prosody_auth-40ec364d59bbfa032e4783415b66b7bc9ba4fa9c.tar prosody_auth-40ec364d59bbfa032e4783415b66b7bc9ba4fa9c.tar.gz prosody_auth-40ec364d59bbfa032e4783415b66b7bc9ba4fa9c.tar.bz2 prosody_auth-40ec364d59bbfa032e4783415b66b7bc9ba4fa9c.tar.xz prosody_auth-40ec364d59bbfa032e4783415b66b7bc9ba4fa9c.zip |
fixed typo
Diffstat (limited to 'mod_auth_custom')
-rw-r--r-- | mod_auth_custom/mod_auth_custom.lua | 4 |
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 |