ui: tfa view: add userid to TFA data model
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
		@ -10,7 +10,7 @@ Ext.define('pbs-tfa-users', {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Ext.define('pbs-tfa-entry', {
 | 
					Ext.define('pbs-tfa-entry', {
 | 
				
			||||||
    extend: 'Ext.data.Model',
 | 
					    extend: 'Ext.data.Model',
 | 
				
			||||||
    fields: ['fullid', 'type', 'description', 'created', 'enable'],
 | 
					    fields: ['fullid', 'userid', 'type', 'description', 'created', 'enable'],
 | 
				
			||||||
    idProperty: 'fullid',
 | 
					    idProperty: 'fullid',
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -61,6 +61,7 @@ Ext.define('PBS.config.TfaView', {
 | 
				
			|||||||
		Ext.Array.each(user.data.entries, entry => {
 | 
							Ext.Array.each(user.data.entries, entry => {
 | 
				
			||||||
		    records.push({
 | 
							    records.push({
 | 
				
			||||||
			fullid: `${user.id}/${entry.id}`,
 | 
								fullid: `${user.id}/${entry.id}`,
 | 
				
			||||||
 | 
								userid: user.id,
 | 
				
			||||||
			type: entry.type,
 | 
								type: entry.type,
 | 
				
			||||||
			description: entry.description,
 | 
								description: entry.description,
 | 
				
			||||||
			created: entry.created,
 | 
								created: entry.created,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user