ui: tfa view: add userid to TFA data model

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-01-19 19:43:54 +01:00
parent 867bfc4378
commit 9a0e115a37

View File

@ -10,7 +10,7 @@ Ext.define('pbs-tfa-users', {
Ext.define('pbs-tfa-entry', {
extend: 'Ext.data.Model',
fields: ['fullid', 'type', 'description', 'created', 'enable'],
fields: ['fullid', 'userid', 'type', 'description', 'created', 'enable'],
idProperty: 'fullid',
});
@ -61,6 +61,7 @@ Ext.define('PBS.config.TfaView', {
Ext.Array.each(user.data.entries, entry => {
records.push({
fullid: `${user.id}/${entry.id}`,
userid: user.id,
type: entry.type,
description: entry.description,
created: entry.created,