From 3768eb5e0ce25e515cc6c5010b134555cd3fbf3f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 17:30:56 +0200 Subject: support all message styles --- mod_auth_custom/mod_auth_custom.lua | 2 ++ 1 file changed, 2 insertions(+) (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 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) responses[i] = {password, 0}; elseif m[1] == pam.PAM_PROMPT_ECHO_ON then responses[i] = {username, 0}; + else + responses[i] = {"", 0}; end end return responses -- cgit v1.2.3