Mercurial > prosody-hg
diff plugins/mod_auth_cyrus.lua @ 5117:2c7e1ce8f482
mod_auth_*: Use module:provides().
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Wed, 12 Sep 2012 21:41:51 +0500 |
| parents | 3939960b3c07 |
| children | 0ba461b7d9af |
line wrap: on
line diff
--- a/plugins/mod_auth_cyrus.lua Wed Sep 12 21:40:00 2012 +0500 +++ b/plugins/mod_auth_cyrus.lua Wed Sep 12 21:41:51 2012 +0500 @@ -44,7 +44,7 @@ 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 @@ return handler; end -module:add_item("auth-provider", provider); +module:provides("auth", provider);
