mod_saslauth, mod_auth_cyrus, util.sasl_cyrus: Moved cyrus account provisioning check...
[prosody.git] / plugins / mod_register.lua
index a35b4c5c33a221e667e6bc44b58328272b501dd6..25f47a9ed1ce43034199564c7e51b0105646744d 100644 (file)
@@ -13,7 +13,6 @@ local datamanager = require "util.datamanager";
 local usermanager_user_exists = require "core.usermanager".user_exists;
 local usermanager_create_user = require "core.usermanager".create_user;
 local usermanager_set_password = require "core.usermanager".set_password;
-local datamanager_store = require "util.datamanager".store;
 local os_time = os.time;
 local nodeprep = require "util.encodings".stringprep.nodeprep;
 
@@ -46,7 +45,7 @@ module:add_iq_handler("c2s", "jabber:iq:register", function (session, stanza)
                                -- TODO datamanager should be able to delete all user data itself
                                datamanager.store(username, host, "vcard", nil);
                                datamanager.store(username, host, "private", nil);
-                               datamanager.store(username, host, "offline", nil);
+                               datamanager.list_store(username, host, "offline", nil);
                                local bare = username.."@"..host;
                                for jid, item in pairs(roster) do
                                        if jid and jid ~= "pending" then