core/usermanager.lua

changeset 3540
bc139431830b
parent 3466
4add4f9ca409
child 3608
ae0f83feaff4
--- a/core/usermanager.lua	Sat Oct 16 08:34:32 2010 +0500
+++ b/core/usermanager.lua	Sat Oct 16 23:00:42 2010 +0500
@@ -50,11 +50,11 @@
 			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);

mercurial