prosody: Don't add a datamanager callback when anonymous_login=true (mod_auth_anonymo...
authorWaqas Hussain <waqas20@gmail.com>
Tue, 28 Dec 2010 04:59:27 +0000 (09:59 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Tue, 28 Dec 2010 04:59:27 +0000 (09:59 +0500)
prosody

diff --git a/prosody b/prosody
index 07ec2bdbda64e8cf1a87a59028f71c91c01fea35..7c819214a996376282d31d3f1641fc2bea87d360 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -334,12 +334,6 @@ end
 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