# HG changeset patch # User Matthew Wild # Date 1701890006 0 # Node ID 6ab9e1763f35a72ea34e360578c7a59aa31ba208 # Parent 32d662015a84a1ca1c9776b1690207c3f5c77e74 mod_http_admin_api: Include information about pending deletion request, if any diff -r 32d662015a84 -r 6ab9e1763f35 mod_http_admin_api/mod_http_admin_api.lua --- a/mod_http_admin_api/mod_http_admin_api.lua Wed Dec 06 15:50:46 2023 +0000 +++ b/mod_http_admin_api/mod_http_admin_api.lua Wed Dec 06 19:13:26 2023 +0000 @@ -31,6 +31,8 @@ assert(mod_lastlog2.get_last_active, "Newer version of mod_lastlog2 is required to use this module"); +local deleted_users = module:open_store("accounts_cleanup"); + local function check_credentials(request) local auth_type, auth_data = string.match(request.headers.authorization or "", "^(%S+)%s(.+)$"); if not (auth_type and auth_data) then @@ -211,6 +213,7 @@ roles = legacy_roles; -- COMPAT w/0.12 enabled = enabled; last_active = mod_lastlog2.get_last_active(username); + deletion_request = deleted_users:get(username); }; end