gui: tfa configuration

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-01-15 11:06:18 +01:00
committed by Thomas Lamprecht
parent a670b99db1
commit 3fffcb5d77
3 changed files with 110 additions and 0 deletions

View File

@ -44,6 +44,27 @@ Ext.define('PBS.SystemConfiguration', {
},
],
},
{
title: gettext('Authentication'),
itemId: 'authentication',
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
},
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10',
},
items: [
{
title: gettext('Webauthn'),
xtype: 'pbsWebauthnConfigView',
},
],
},
],
initComponent: function() {
@ -55,6 +76,11 @@ Ext.define('PBS.SystemConfiguration', {
Ext.Array.forEach(networktime.query(), function(item) {
item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
});
let authentication = me.getComponent('authentication');
Ext.Array.forEach(authentication.query(), function(item) {
item.relayEvents(authentication, ['activate', 'deactivate', 'destroy']);
});
},
});