aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-07 02:38:20 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-07 02:38:20 +0500
commit4e378598de3fa5ca92b5cec696966626a41cef5e (patch)
tree9299a38a8eeae794d2fed1c54e707ef124faeb34
parente42b058b2b4157b2bed2120db82495860fc502d9 (diff)
downloadprosody-4e378598de3fa5ca92b5cec696966626a41cef5e.tar.gz
prosody-4e378598de3fa5ca92b5cec696966626a41cef5e.zip
mod_auth_internal, mod_auth_internal_hashed: Fixed a global access.
-rw-r--r--plugins/mod_auth_internal.lua2
-rw-r--r--plugins/mod_auth_internal_hashed.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_auth_internal.lua b/plugins/mod_auth_internal.lua
index 0fc6e487..1c426030 100644
--- a/plugins/mod_auth_internal.lua
+++ b/plugins/mod_auth_internal.lua
@@ -76,7 +76,7 @@ function new_default_provider(host)
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 --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index 1741a05a..e793add2 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -108,7 +108,7 @@ function new_hashpass_provider(host)
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);