Software /
code /
prosody
Diff
plugins/mod_auth_internal_hashed.lua @ 5117:2c7e1ce8f482
mod_auth_*: Use module:provides().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 12 Sep 2012 21:41:51 +0500 |
parent | 5116:5f9066db1b4d |
child | 5156:6b08c922a2e4 |
line wrap: on
line diff
--- a/plugins/mod_auth_internal_hashed.lua Wed Sep 12 21:40:00 2012 +0500 +++ b/plugins/mod_auth_internal_hashed.lua Wed Sep 12 21:41:51 2012 +0500 @@ -41,7 +41,7 @@ local host = module.host; -- define auth provider -local provider = { name = "internal_hashed" }; +local provider = {}; log("debug", "initializing internal_hashed authentication provider for host '%s'", host); function provider.test_password(username, password) @@ -145,5 +145,5 @@ return new_sasl(host, testpass_authentication_profile); end -module:add_item("auth-provider", provider); +module:provides("auth", provider);