aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal_hashed.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r--plugins/mod_auth_internal_hashed.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index 598934d8..cd5e9364 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -123,12 +123,14 @@ function provider.enable(username)
-- 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