ui: login: remove fixed OTP field completely

we now have the TFALoginWindow which pops up if TFA is configured,
so use only this single stream lined approach.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-04-08 15:48:32 +02:00
parent 313eb589de
commit 45980a92d2

View File

@ -151,18 +151,6 @@ Ext.define('PVE.window.LoginWindow', {
}
}
},
'field[name=realm]': {
change: function(f, value) {
var otp_field = this.lookupReference('otpField');
if (f.needOTP(value)) {
otp_field.setVisible(true);
otp_field.setDisabled(false);
} else {
otp_field.setVisible(false);
otp_field.setDisabled(true);
}
}
},
'field[name=lang]': {
change: function(f, value) {
var dt = Ext.Date.add(new Date(), Ext.Date.YEAR, 10);
@ -241,14 +229,6 @@ Ext.define('PVE.window.LoginWindow', {
name: 'password',
reference: 'passwordField'
},
{
xtype: 'textfield',
fieldLabel: gettext('OTP'),
name: 'otp',
reference: 'otpField',
allowBlank: false,
hidden: true
},
{
xtype: 'pveRealmComboBox',
name: 'realm'