# HG changeset patch # User Kim Alvefur # Date 1678580699 -3600 # Node ID 3ab0bbb1dc35b666d2216fde0c638b7f5c576195 # Parent 9bb044705ea1709cccb3cdc565f86af2a1044460 mod_auth_internal_hashed: Record time of account disable / re-enable Could be useful for e.g. #1772 diff -r 9bb044705ea1 -r 3ab0bbb1dc35 plugins/mod_auth_internal_hashed.lua --- 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