From: Waqas Hussain Date: Tue, 28 Dec 2010 04:59:27 +0000 (+0500) Subject: prosody: Don't add a datamanager callback when anonymous_login=true (mod_auth_anonymo... X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;ds=sidebyside;h=d062810cca206ec345526d4027637f13528e728c;p=prosody.git prosody: Don't add a datamanager callback when anonymous_login=true (mod_auth_anonymous does this now). --- diff --git a/prosody b/prosody index 07ec2bdb..7c819214 100755 --- 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