aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_cyrus.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-09-12 21:41:51 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-09-12 21:41:51 +0500
commit92515e7aa6dbcc3a9a8e3d8de5f368c69df59842 (patch)
treeb2fe054354068ca709ed6936dac6b0d518f8bce9 /plugins/mod_auth_cyrus.lua
parent2e28c81f01a00d5b9e98b707cf1849ca736fc8eb (diff)
downloadprosody-92515e7aa6dbcc3a9a8e3d8de5f368c69df59842.tar.gz
prosody-92515e7aa6dbcc3a9a8e3d8de5f368c69df59842.zip
mod_auth_*: Use module:provides().
Diffstat (limited to 'plugins/mod_auth_cyrus.lua')
-rw-r--r--plugins/mod_auth_cyrus.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_auth_cyrus.lua b/plugins/mod_auth_cyrus.lua
index 5ed124cc..7668f8c4 100644
--- a/plugins/mod_auth_cyrus.lua
+++ b/plugins/mod_auth_cyrus.lua
@@ -44,7 +44,7 @@ end
local host = module.host;
-- define auth provider
-local provider = { name = "cyrus" };
+local provider = {};
log("debug", "initializing default authentication provider for host '%s'", host);
function provider.test_password(username, password)
@@ -80,5 +80,5 @@ function provider.get_sasl_handler()
return handler;
end
-module:add_item("auth-provider", provider);
+module:provides("auth", provider);