55 if auth_provider ~= "null" then |
55 if auth_provider ~= "null" then |
56 modulemanager.load(host, "auth_"..auth_provider); |
56 modulemanager.load(host, "auth_"..auth_provider); |
57 end |
57 end |
58 end; |
58 end; |
59 prosody.events.add_handler("host-activated", initialize_host, 100); |
59 prosody.events.add_handler("host-activated", initialize_host, 100); |
60 prosody.events.add_handler("component-activated", initialize_host, 100); |
|
61 |
60 |
62 function test_password(username, host, password) |
61 function test_password(username, host, password) |
63 return hosts[host].users.test_password(username, password); |
62 return hosts[host].users.test_password(username, password); |
64 end |
63 end |
65 |
64 |