# HG changeset patch # User Waqas Hussain # Date 1275860300 -18000 # Node ID a475fbce1990b00e621731c9d4d270b0f9044ccc # Parent b5f26112301340c4d165f37802f33e8e7e1a8570 mod_auth_internal, mod_auth_internal_hashed: Fixed a global access. diff -r b5f261123013 -r a475fbce1990 plugins/mod_auth_internal.lua --- 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); diff -r b5f261123013 -r a475fbce1990 plugins/mod_auth_internal_hashed.lua --- 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);