From 7deb430dfce27416d143c645fbc2b7fc10bf1f01 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 12 Sep 2012 21:41:51 +0500 Subject: mod_auth_*: Use module:provides(). --- plugins/mod_auth_cyrus.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_auth_cyrus.lua') 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); -- cgit v1.2.3