Software /
code /
prosody
Diff
plugins/mod_auth_anonymous.lua @ 5117:2c7e1ce8f482
mod_auth_*: Use module:provides().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 12 Sep 2012 21:41:51 +0500 |
parent | 5115:3939960b3c07 |
child | 5229:5566236f363f |
line wrap: on
line diff
--- a/plugins/mod_auth_anonymous.lua Wed Sep 12 21:40:00 2012 +0500 +++ b/plugins/mod_auth_anonymous.lua Wed Sep 12 21:41:51 2012 +0500 @@ -10,7 +10,7 @@ local datamanager = require "util.datamanager"; -- define auth provider -local provider = { name = "anonymous" }; +local provider = {}; function provider.test_password(username, password) return nil, "Password based auth not supported."; @@ -62,5 +62,5 @@ datamanager.remove_callback(dm_callback); end -module:add_item("auth-provider", provider); +module:provides("auth", provider);