From 9a0e115a37280bb6bc762517cfbdab033a6b8ec1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 19 Jan 2021 19:43:54 +0100 Subject: [PATCH] ui: tfa view: add userid to TFA data model Signed-off-by: Thomas Lamprecht --- www/config/TfaView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/config/TfaView.js b/www/config/TfaView.js index f76732fc..40fe31c6 100644 --- a/www/config/TfaView.js +++ b/www/config/TfaView.js @@ -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,