diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 22:19:16 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 22:19:16 +0200 |
commit | 8d740aedb73a957d51ef7df8058fbb833ef8ee6b (patch) | |
tree | a111bd776174b24375287775618995b614535e07 /mod_auth_custom | |
parent | 51df2d3686ec815590dc96dd8729aed5f8328d15 (diff) | |
download | prosody_auth-8d740aedb73a957d51ef7df8058fbb833ef8ee6b.tar prosody_auth-8d740aedb73a957d51ef7df8058fbb833ef8ee6b.tar.gz prosody_auth-8d740aedb73a957d51ef7df8058fbb833ef8ee6b.tar.bz2 prosody_auth-8d740aedb73a957d51ef7df8058fbb833ef8ee6b.tar.xz prosody_auth-8d740aedb73a957d51ef7df8058fbb833ef8ee6b.zip |
phased out esoteric syntax
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 184edf3..cfded11 100644 --- a/mod_auth_custom/mod_auth_custom.lua +++ b/mod_auth_custom/mod_auth_custom.lua | |||
@@ -64,9 +64,9 @@ end | |||
64 | 64 | ||
65 | function get_sasl_handler() | 65 | function get_sasl_handler() |
66 | return new_sasl(module.host, { | 66 | return new_sasl(module.host, { |
67 | plain_test = function(sasl, ...) | 67 | plain_test = function(sasl, username, password, ...) |
68 | if is_real_user(username) then | 68 | if is_real_user(username) then |
69 | return pam_auth(...); | 69 | return pam_auth(username, password); |
70 | elseif is_alias(username) then | 70 | elseif is_alias(username) then |
71 | if password == alias_pw(username) then | 71 | if password == alias_pw(username) then |
72 | return true, true; | 72 | return true, true; |