mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
Use new cofig option reading API.
This commit is contained in:
parent
5ee762728b
commit
c52c4021b0
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ module:add_event_hook("stream-features",
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue