Software /
code /
prosody
Changeset
8069:8f5f197b139d
mod_register: Remove check for empty table (previous line sets a field)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Apr 2017 10:28:05 +0200 |
parents | 8067:91550b6f93d2 |
children | 8070:2db6746d2df8 |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Sat Apr 08 16:42:42 2017 +0200 +++ b/plugins/mod_register.lua Mon Apr 10 10:28:05 2017 +0200 @@ -268,7 +268,7 @@ 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 + if not account_details:set(username, data) then log("debug", "Could not store extra details"); usermanager_delete_user(username, host); session.send(error_reply);