From b07f05a3fbe82ceffe04493abf901c60af8ec315 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 1 Dec 2016 06:47:03 +0100 Subject: mod_register: Record the time of registration in the account details store --- plugins/mod_register.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_register.lua') diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index eaa0614d..c376117f 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -257,6 +257,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event) -- TODO unable to write file, file may be locked, etc, what's the correct error? local error_reply = st.error_reply(stanza, "wait", "internal-server-error", "Failed to write data to disk."); if usermanager_create_user(username, password, host) then + data.registered = os.time(); if next(data) and not account_details:set(username, data) then log("debug", "Could not store extra details"); usermanager_delete_user(username, host); -- cgit v1.2.3