aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_auth_internal_hashed.lua13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index d5fa8e12..0bafa23b 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -117,12 +117,17 @@ function provider.is_enabled(username) -- luacheck: ignore 212
return info.enabled;
end
-function provider.enable(username) -- luacheck: ignore 212
- error "NYI"
+function provider.enable(username)
+ -- TODO map store?
+ local account = accounts:get(username);
+ account.disabled = nil;
+ return accounts:set(username, account);
end
-function provider.disable(username) -- luacheck: ignore 212
- error "NYI"
+function provider.disable(username)
+ local account = accounts:get(username);
+ account.disabled = true;
+ return accounts:set(username, account);
end
function provider.users()