moduleapi: in module:provides(), add the name of the module in item._provided_by
[prosody.git] / plugins / mod_auth_cyrus.lua
index 5ed124cc018f2088c23795cb9b391c75536178ac..7668f8c407f2b8255e645d0d88c8dae179796090 100644 (file)
@@ -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);