Software /
code /
prosody
Changeset
3187:a475fbce1990
mod_auth_internal, mod_auth_internal_hashed: Fixed a global access.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 07 Jun 2010 02:38:20 +0500 |
parents | 3186:b5f261123013 |
children | 3188:c690e3c5105c |
files | plugins/mod_auth_internal.lua plugins/mod_auth_internal_hashed.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_auth_internal.lua Mon Jun 07 02:33:40 2010 +0500 +++ b/plugins/mod_auth_internal.lua Mon Jun 07 02:38:20 2010 +0500 @@ -76,7 +76,7 @@ end function provider.get_sasl_handler() - local realm = module:get_option("sasl_realm") or origin.host; + local realm = module:get_option("sasl_realm") or module.host; local getpass_authentication_profile = { plain = function(username, realm) local prepped_username = nodeprep(username);
--- a/plugins/mod_auth_internal_hashed.lua Mon Jun 07 02:33:40 2010 +0500 +++ b/plugins/mod_auth_internal_hashed.lua Mon Jun 07 02:38:20 2010 +0500 @@ -108,7 +108,7 @@ end function provider.get_sasl_handler() - local realm = module:get_option("sasl_realm") or origin.host; + local realm = module:get_option("sasl_realm") or module.host; local testpass_authentication_profile = { plain_test = function(username, password, realm) local prepped_username = nodeprep(username);