diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 17:30:56 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 17:30:56 +0200 |
commit | 3768eb5e0ce25e515cc6c5010b134555cd3fbf3f (patch) | |
tree | cc2ae5544bcf37307dc57cb4fc948543ee2fc082 /mod_auth_custom/mod_auth_custom.lua | |
parent | b4a8cd17027091f92e8971bc1443b228fb7f5433 (diff) | |
download | prosody_auth-3768eb5e0ce25e515cc6c5010b134555cd3fbf3f.tar prosody_auth-3768eb5e0ce25e515cc6c5010b134555cd3fbf3f.tar.gz prosody_auth-3768eb5e0ce25e515cc6c5010b134555cd3fbf3f.tar.bz2 prosody_auth-3768eb5e0ce25e515cc6c5010b134555cd3fbf3f.tar.xz prosody_auth-3768eb5e0ce25e515cc6c5010b134555cd3fbf3f.zip |
support all message styles
Diffstat (limited to 'mod_auth_custom/mod_auth_custom.lua')
-rw-r--r-- | mod_auth_custom/mod_auth_custom.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mod_auth_custom/mod_auth_custom.lua b/mod_auth_custom/mod_auth_custom.lua index 67049af..315b630 100644 --- a/mod_auth_custom/mod_auth_custom.lua +++ b/mod_auth_custom/mod_auth_custom.lua | |||
@@ -24,6 +24,8 @@ function test_password(username, password) | |||
24 | responses[i] = {password, 0}; | 24 | responses[i] = {password, 0}; |
25 | elseif m[1] == pam.PAM_PROMPT_ECHO_ON then | 25 | elseif m[1] == pam.PAM_PROMPT_ECHO_ON then |
26 | responses[i] = {username, 0}; | 26 | responses[i] = {username, 0}; |
27 | else | ||
28 | responses[i] = {"", 0}; | ||
27 | end | 29 | end |
28 | end | 30 | end |
29 | return responses | 31 | return responses |