prosody: Don't add a datamanager callback when anonymous_login=true (mod_auth_anonymous does this now).

Tue, 28 Dec 2010 09:59:27 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Tue, 28 Dec 2010 09:59:27 +0500
changeset 3985
277b5bf9a200
parent 3984
6be419e2f509
child 3986
671a660b20f9

prosody: Don't add a datamanager callback when anonymous_login=true (mod_auth_anonymous does this now).

prosody file | annotate | diff | comparison | revisions
--- a/prosody	Tue Dec 28 09:58:40 2010 +0500
+++ b/prosody	Tue Dec 28 09:59:27 2010 +0500
@@ -334,12 +334,6 @@
 function init_data_store()
 	local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
 	require "util.datamanager".set_data_path(data_path);
-	require "util.datamanager".add_callback(function(username, host, datastore, data)
-		if config.get(host, "core", "anonymous_login") then
-			return false;
-		end
-		return username, host, datastore, data;
-	end);
 	require "core.storagemanager";
 end
 

mercurial