Software /
code /
prosody
Comparison
plugins/mod_auth_internal_plain.lua @ 3981:2b0b8fe68df2
util.sasl.*, mod_auth_*, mod_saslauth: Pass SASL handler as first parameter to SASL profile callbacks.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 27 Dec 2010 19:57:04 +0500 |
parent | 3465:b6db1a8a78bb |
child | 3994:42899d5efe3b |
comparison
equal
deleted
inserted
replaced
3980:6b2fac6602b3 | 3981:2b0b8fe68df2 |
---|---|
64 end | 64 end |
65 | 65 |
66 function provider.get_sasl_handler() | 66 function provider.get_sasl_handler() |
67 local realm = module:get_option("sasl_realm") or module.host; | 67 local realm = module:get_option("sasl_realm") or module.host; |
68 local getpass_authentication_profile = { | 68 local getpass_authentication_profile = { |
69 plain = function(username, realm) | 69 plain = function(sasl, username, realm) |
70 local prepped_username = nodeprep(username); | 70 local prepped_username = nodeprep(username); |
71 if not prepped_username then | 71 if not prepped_username then |
72 log("debug", "NODEprep failed on username: %s", username); | 72 log("debug", "NODEprep failed on username: %s", username); |
73 return "", nil; | 73 return "", nil; |
74 end | 74 end |