aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-01 06:47:03 +0100
committerKim Alvefur <zash@zash.se>2016-12-01 06:47:03 +0100
commit854e22b394fd523c783e79a2a03a4dab28e7e5d6 (patch)
treee055674e00523ae3594258a54063eca2e4892469
parent3d31b0f2ebd4b806ea1d084bf44b9ee2ac594655 (diff)
downloadprosody-854e22b394fd523c783e79a2a03a4dab28e7e5d6.tar.gz
prosody-854e22b394fd523c783e79a2a03a4dab28e7e5d6.zip
mod_register: Record the time of registration in the account details store
-rw-r--r--plugins/mod_register.lua1
1 files changed, 1 insertions, 0 deletions
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);