Software /
code /
prosody-modules
Diff
mod_auth_phpbb3/mod_auth_phpbb3.lua @ 814:881ec9919144
mod_auth_*: Use module:provides(), and don't explicitly specify provider.name.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 13 Sep 2012 00:08:29 +0500 |
parent | 665:684cc57a49c1 |
child | 1343:7dbde05b48a9 |
line wrap: on
line diff
--- a/mod_auth_phpbb3/mod_auth_phpbb3.lua Wed Sep 12 23:58:01 2012 +0500 +++ b/mod_auth_phpbb3/mod_auth_phpbb3.lua Thu Sep 13 00:08:29 2012 +0500 @@ -187,7 +187,7 @@ end -provider = { name = "phpbb3" }; +provider = {}; function provider.test_password(username, password) local hash = get_password(username); @@ -269,5 +269,5 @@ return sasl; end -module:add_item("auth-provider", provider); +module:provides("auth", provider);