]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
ui: tfa: hide digit/duration fields as some auth apps are broken
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Apr 2019 06:35:26 +0000 (08:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Apr 2019 06:35:28 +0000 (08:35 +0200)
Google Authenticator, for example, just ignores it and thus one
cannot use they produced verification codes...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/TFAEdit.js

index 014d6df5d6f2b464fd7b59d3696f539ad5451da6..cfb823378106077db2400f69bb72ce36a1c5074e 100644 (file)
@@ -322,6 +322,8 @@ Ext.define('PVE.window.TFAEdit', {
                                    xtype: 'numberfield',
                                    fieldLabel: gettext('Time period'),
                                    name: 'step',
+                                   // Google Authenticator ignores this and generates bogus data
+                                   hidden: true,
                                    value: 30,
                                    minValue: 10,
                                    qrupdate: true
@@ -331,6 +333,8 @@ Ext.define('PVE.window.TFAEdit', {
                                    fieldLabel: gettext('Digits'),
                                    name: 'digits',
                                    value: 6,
+                                   // Google Authenticator ignores this and generates bogus data
+                                   hidden: true,
                                    minValue: 6,
                                    maxValue: 8,
                                    qrupdate: true