aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_anonymous.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
commit7deb430dfce27416d143c645fbc2b7fc10bf1f01 (patch)
treeb2fe054354068ca709ed6936dac6b0d518f8bce9 /plugins/mod_auth_anonymous.lua
parent2d85221f19fd038a91750f8ff941a6b42c7cc2a7 (diff)
downloadprosody-7deb430dfce27416d143c645fbc2b7fc10bf1f01.tar.gz
prosody-7deb430dfce27416d143c645fbc2b7fc10bf1f01.zip
mod_auth_*: Use module:provides().
Diffstat (limited to 'plugins/mod_auth_anonymous.lua')
-rw-r--r--plugins/mod_auth_anonymous.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_auth_anonymous.lua b/plugins/mod_auth_anonymous.lua
index 761dc8a4..c27057be 100644
--- a/plugins/mod_auth_anonymous.lua
+++ b/plugins/mod_auth_anonymous.lua
@@ -10,7 +10,7 @@ local new_sasl = require "util.sasl".new;
local datamanager = require "util.datamanager";
-- define auth provider
-local provider = { name = "anonymous" };
+local provider = {};
function provider.test_password(username, password)
return nil, "Password based auth not supported.";
@@ -62,5 +62,5 @@ function module.unload()
datamanager.remove_callback(dm_callback);
end
-module:add_item("auth-provider", provider);
+module:provides("auth", provider);