mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 21:11:42 +00:00
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 <d.csapak@proxmox.com>
This commit is contained in:
parent
6a504e1995
commit
402964713a
16
src/Utils.js
16
src/Utils.js
@ -1150,6 +1150,22 @@ utilities: {
|
|||||||
|
|
||||||
return icon;
|
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,
|
singleton: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user