mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 09:22:03 +00:00
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:
parent
313eb589de
commit
45980a92d2
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user