From 8d740aedb73a957d51ef7df8058fbb833ef8ee6b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 22:19:16 +0200 Subject: phased out esoteric syntax --- mod_auth_custom/mod_auth_custom.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_auth_custom/mod_auth_custom.lua b/mod_auth_custom/mod_auth_custom.lua index 184edf3..cfded11 100644 --- a/mod_auth_custom/mod_auth_custom.lua +++ b/mod_auth_custom/mod_auth_custom.lua @@ -64,9 +64,9 @@ end function get_sasl_handler() return new_sasl(module.host, { - plain_test = function(sasl, ...) + plain_test = function(sasl, username, password, ...) if is_real_user(username) then - return pam_auth(...); + return pam_auth(username, password); elseif is_alias(username) then if password == alias_pw(username) then return true, true; -- cgit v1.2.3