Software /
code /
prosody
Changeset
7754:560d2e758d4c
mod_register: Record the time of registration in the account details store
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 01 Dec 2016 06:47:03 +0100 |
parents | 7753:c276d72d4e17 |
children | 7755:19aa9b1ef9e8 |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Thu Dec 01 03:22:42 2016 +0100 +++ b/plugins/mod_register.lua Thu Dec 01 06:47:03 2016 +0100 @@ -257,6 +257,7 @@ -- 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);