Software /
code /
prosody
Diff
plugins/mod_auth_internal_hashed.lua @ 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 |
parent | 12916:5a06d07596f9 |
child | 12946:59478b295137 |
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