X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=core%2Fusermanager.lua;h=83de193f082eb4fed8fc51eef9912a87ba3f492c;hb=b4cbbfc80ba799c54dfeff37c44e2673a3322ace;hp=5fc4a8229edbe60332818846ce13bd59872c82fe;hpb=a7f1c478136e20f6196c998564a78ffad7c362e6;p=prosody.git diff --git a/core/usermanager.lua b/core/usermanager.lua index 5fc4a822..83de193f 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -50,14 +50,13 @@ function initialize_host(host) host_session.users = new_null_provider(); end end); - host_session.users = new_null_provider(); -- Start with the default usermanager provider - local auth_provider = config.get(host, "core", "authentication") or default_provider; - if auth_provider ~= "null" then - modulemanager.load(host, "auth_"..auth_provider); - end + host_session.users = new_null_provider(); -- Start with the default usermanager provider + local auth_provider = config.get(host, "core", "authentication") or default_provider; + if auth_provider ~= "null" then + modulemanager.load(host, "auth_"..auth_provider); + end end; prosody.events.add_handler("host-activated", initialize_host, 100); -prosody.events.add_handler("component-activated", initialize_host, 100); function test_password(username, host, password) return hosts[host].users.test_password(username, password);