diff options
author | Waqas Hussain <waqas20@gmail.com> | 2012-09-12 21:41:51 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2012-09-12 21:41:51 +0500 |
commit | 7deb430dfce27416d143c645fbc2b7fc10bf1f01 (patch) | |
tree | b2fe054354068ca709ed6936dac6b0d518f8bce9 /plugins/mod_auth_internal_hashed.lua | |
parent | 2d85221f19fd038a91750f8ff941a6b42c7cc2a7 (diff) | |
download | prosody-7deb430dfce27416d143c645fbc2b7fc10bf1f01.tar.gz prosody-7deb430dfce27416d143c645fbc2b7fc10bf1f01.zip |
mod_auth_*: Use module:provides().
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r-- | plugins/mod_auth_internal_hashed.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua index cbca6861..b61fba80 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -41,7 +41,7 @@ local iteration_count = 4096; 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 @@ function provider.get_sasl_handler() return new_sasl(host, testpass_authentication_profile); end -module:add_item("auth-provider", provider); +module:provides("auth", provider); |