From 402964713acb068d6e7d522124a15bcce23591ee Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 9 Jul 2021 13:42:22 +0200 Subject: [PATCH] Utils: add authSchema from PVE and make it overrideable like we do for the task_descriptions. This way we can have a basic config that is true for all products and override where necessary Signed-off-by: Dominik Csapak --- src/Utils.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Utils.js b/src/Utils.js index 8e1f9d4..42cc02c 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -1150,6 +1150,22 @@ utilities: { return icon; }, + + authSchema: { + pam: { + name: 'Linux PAM', + add: false, + edit: false, + pwchange: true, + }, + }, + + // to add or change existing for product specific ones + overrideAuthSchema: function(extra) { + for (const [key, value] of Object.entries(extra)) { + Proxmox.Utils.authSchema[key] = value; + } + }, }, singleton: true, -- 2.39.2