Software /
code /
prosody
Changeset
12933:3ab0bbb1dc35
mod_auth_internal_hashed: Record time of account disable / re-enable
Could be useful for e.g. #1772
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Mar 2023 01:24:59 +0100 |
parents | 12932:9bb044705ea1 |
children | 12934:c6dffebab2f8 |
files | plugins/mod_auth_internal_hashed.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_auth_internal_hashed.lua Tue Mar 14 18:24:58 2023 +0000 +++ b/plugins/mod_auth_internal_hashed.lua Sun Mar 12 01:24:59 2023 +0100 @@ -123,12 +123,14 @@ -- TODO map store? local account = accounts:get(username); account.disabled = nil; + account.updated = os.time(); return accounts:set(username, account); end function provider.disable(username) local account = accounts:get(username); account.disabled = true; + account.updated = os.time(); return accounts:set(username, account); end