Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 2208:2dc746323de6
Use new cofig option reading API.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Thu, 19 Nov 2009 16:44:37 +0100 |
parent | 2207:7ef74b2be8f8 |
child | 2242:ee6ac55a72d6 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Thu Nov 19 16:43:38 2009 +0100 +++ b/plugins/mod_saslauth.lua Thu Nov 19 16:44:37 2009 +0100 @@ -137,7 +137,7 @@ if secure_auth_only and not session.secure then return; end - if config.get(session.host or "*", "core", "anonymous_login") then + if module:get_option("anonymous_login") then session.sasl_handler = new_sasl(session.host, anonymous_authentication_profile); else session.sasl_handler = new_sasl(session.host, default_authentication_profile);