Comparison

mod_client_management/mod_client_management.lua @ 5343:5c1c70e52635

mod_client_management: Fix import of util.error (not errors)
author Kim Alvefur <zash@zash.se>
date Thu, 13 Apr 2023 09:11:28 +0200
parent 5312:22e6b9f09439
child 5369:1a58a11407ac
comparison
equal deleted inserted replaced
5342:e28ba69b5307 5343:5c1c70e52635
370 370
371 origin.send(reply); 371 origin.send(reply);
372 return true; 372 return true;
373 end); 373 end);
374 374
375 local revocation_errors = require "util.errors".init(module.name, xmlns_manage_clients, { 375 local revocation_errors = require "util.error".init(module.name, xmlns_manage_clients, {
376 ["item-not-found"] = { "cancel", "item-not-found", "Client not found" }; 376 ["item-not-found"] = { "cancel", "item-not-found", "Client not found" };
377 ["internal-server-error"] = { "wait", "internal-server-error", "Unable to revoke client access" }; 377 ["internal-server-error"] = { "wait", "internal-server-error", "Unable to revoke client access" };
378 ["password-reset-required"] = { "cancel", "service-unavailable", "Password reset required", "password-reset-required" }; 378 ["password-reset-required"] = { "cancel", "service-unavailable", "Password reset required", "password-reset-required" };
379 }); 379 });
380 380