[pve-devel] [PATCH manager 2/4] ui: user view: show tfa type name

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Apr 11 11:32:00 CEST 2019


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 www/manager6/dc/UserView.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
index e412edfb..e91486ab 100644
--- a/www/manager6/dc/UserView.js
+++ b/www/manager6/dc/UserView.js
@@ -164,7 +164,14 @@ Ext.define('PVE.dc.UserView', {
 		    width: 50,
 		    sortable: true,
 		    renderer: function(v) {
-			return Proxmox.Utils.format_boolean(v !== undefined && v.length);
+			var tfa_type = PVE.Parser.parseTfaType(v);
+			if (tfa_type === undefined) {
+			    return Proxmox.Utils.noText;
+			} else if (tfa_type === 1) {
+			    return Proxmox.Utils.yesText;
+			} else {
+			    return tfa_type;
+			}
 		    },
 		    dataIndex: 'keys'
 		},
-- 
2.11.0





More information about the pve-devel mailing list