aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_register.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-02 11:13:05 +0100
committerKim Alvefur <zash@zash.se>2016-12-02 11:13:05 +0100
commit2a9484a488a5878e27b5d749b5bbb0d54f497e86 (patch)
treeb8d5008111c5708e9ee236f6139e5100ccd683d2 /plugins/mod_register.lua
parentd83f4d63b00b4cf561ad1c81f31f43b560bd7bd1 (diff)
parent738528509c19ea443b4066e49b7a93fd2317b0ee (diff)
downloadprosody-2a9484a488a5878e27b5d749b5bbb0d54f497e86.tar.gz
prosody-2a9484a488a5878e27b5d749b5bbb0d54f497e86.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_register.lua')
-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);