[pve-devel] [PATCH manager 2/2] allow overwriting u2f key

Dominik Csapak d.csapak at proxmox.com
Wed Apr 17 14:28:23 CEST 2019


so one can setup a new u2f key when one is already set, otherwise
showing anything at all makes no sense

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/TFAEdit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/dc/TFAEdit.js b/www/manager6/dc/TFAEdit.js
index c57c5339..5cda4c07 100644
--- a/www/manager6/dc/TFAEdit.js
+++ b/www/manager6/dc/TFAEdit.js
@@ -476,7 +476,7 @@ Ext.define('PVE.window.TFAEdit', {
 	    handler: 'startU2FRegistration',
 	    bind: {
 		hidden: '{in_totp_tab}',
-		disabled: '{tfa_type}'
+		disabled: '{!canSetupU2F}'
 	    }
 	},
 	{
-- 
2.11.0





More information about the pve-devel mailing list