From 92515e7aa6dbcc3a9a8e3d8de5f368c69df59842 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_internal_plain.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_auth_internal_plain.lua') diff --git a/plugins/mod_auth_internal_plain.lua b/plugins/mod_auth_internal_plain.lua index 7705cb66..b7723dd7 100644 --- a/plugins/mod_auth_internal_plain.lua +++ b/plugins/mod_auth_internal_plain.lua @@ -15,7 +15,7 @@ local log = module._log; local host = module.host; -- define auth provider -local provider = { name = "internal_plain" }; +local provider = {}; log("debug", "initializing internal_plain authentication provider for host '%s'", host); function provider.test_password(username, password) @@ -78,5 +78,5 @@ function provider.get_sasl_handler() return new_sasl(host, getpass_authentication_profile); end -module:add_item("auth-provider", provider); +module:provides("auth", provider); -- cgit v1.2.3