aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-04 14:33:36 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-04 14:33:36 +0100
commit3846f08f09defece7a04ef3e68b3843f5a206c08 (patch)
treeb4f0d686a0c95e975957f9d6943ffee8826937b5 /plugins
parentc294b198d31be8f2f9448442aad893462ff5e1c5 (diff)
downloadprosody-3846f08f09defece7a04ef3e68b3843f5a206c08.tar.gz
prosody-3846f08f09defece7a04ef3e68b3843f5a206c08.zip
Rename mod_defaultauth -> mod_auth_internal, mod_hashpassauth -> mod_auth_internal_hashed, and the providers to internal and internal_hashed respectively. Also no longer auto-load defaultauth, but instead auto-load the plugin selected for each host at startup based on the provider name.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_auth_internal.lua (renamed from plugins/mod_defaultauth.lua)2
-rw-r--r--plugins/mod_auth_internal_hashed.lua (renamed from plugins/mod_hashpassauth.lua)2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_defaultauth.lua b/plugins/mod_auth_internal.lua
index 6782ae09..78a75a1d 100644
--- a/plugins/mod_defaultauth.lua
+++ b/plugins/mod_auth_internal.lua
@@ -23,7 +23,7 @@ local prosody = _G.prosody;
local is_cyrus = usermanager.is_cyrus;
function new_default_provider(host)
- local provider = { name = "default" };
+ local provider = { name = "internal" };
log("debug", "initializing default authentication provider for host '%s'", host);
function provider.test_password(username, password)
diff --git a/plugins/mod_hashpassauth.lua b/plugins/mod_auth_internal_hashed.lua
index bea2c67f..e2c423f2 100644
--- a/plugins/mod_hashpassauth.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -28,7 +28,7 @@ local is_cyrus = usermanager.is_cyrus;
local iteration_count = 4096;
function new_hashpass_provider(host)
- local provider = { name = "hashpass" };
+ local provider = { name = "internal_hashed" };
log("debug", "initializing hashpass authentication provider for host '%s'", host);
function provider.test_password(username, password)