+/*jslint confusion: true*/
Ext.define('PVE.window.TFAEdit', {
extend: 'Ext.window.Window',
mixins: ['Proxmox.Mixin.CBind'],
data: {
in_totp_tab: true,
tfa_required: false,
- u2f_available: true,
+ u2f_available: true
}
},
config: PVE.Parser.printPropertyString({
type: 'oath',
digits: values.digits,
- step: values.step,
+ step: values.step
}),
// this is used to verify that the client generates the correct codes:
- response: me.lookup('challenge').value,
+ response: me.lookup('challenge').value
};
if (Proxmox.UserName !== 'root@pam') {
var values = me.lookup('totp-form').getValues();
var params = {
userid: me.getView().userid,
- action: 'delete',
+ action: 'delete'
};
if (Proxmox.UserName !== 'root@pam') {
fieldDefaults: {
labelWidth: 120,
anchor: '100%',
- padding: '0 5',
+ padding: '0 5'
},
items: [
{
name: 'step',
value: 30,
minValue: 10,
- qrupdate: true,
+ qrupdate: true
},
{
xtype: 'numberfield',
value: 6,
minValue: 6,
maxValue: 8,
- qrupdate: true,
+ qrupdate: true
},
{
xtype: 'textfield',
fieldLabel: gettext('Issuer Name'),
name: 'issuer',
value: 'Proxmox Web UI',
- qrupdate: true,
+ qrupdate: true
},
{
xtype: 'textfield',
hidden: true,
name: 'name',
cbind: {
- value: '{userid}',
+ value: '{userid}'
},
- qrupdate: true,
+ qrupdate: true
}
]
},
'background-color': 'white',
padding: '5px',
width: '266px',
- height: '266px',
+ height: '266px'
}
},
{
{
xtype: 'label',
width: 500,
- text: gettext('To register a U2F device, connect the device, then click the button and follow the instructions.'),
+ text: gettext('To register a U2F device, connect the device, then click the button and follow the instructions.')
}
]
}