mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 04:24:07 +00:00
ui: tfa: ExtJS debug complains about - in references
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
34c08874de
commit
b688436d44
@ -17,7 +17,7 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
|
|
||||||
updateQrCode: function() {
|
updateQrCode: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
var values = me.lookup('totp-form').getValues();
|
var values = me.lookup('totp_form').getValues();
|
||||||
var algorithm = values.algorithm;
|
var algorithm = values.algorithm;
|
||||||
if (!algorithm) {
|
if (!algorithm) {
|
||||||
algorithm = 'SHA1';
|
algorithm = 'SHA1';
|
||||||
@ -166,7 +166,7 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
|
|
||||||
applySettings: function() {
|
applySettings: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
var values = me.lookup('totp-form').getValues();
|
var values = me.lookup('totp_form').getValues();
|
||||||
var params = {
|
var params = {
|
||||||
userid: me.getView().userid,
|
userid: me.getView().userid,
|
||||||
action: 'new',
|
action: 'new',
|
||||||
@ -200,7 +200,7 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
|
|
||||||
deleteTFA: function() {
|
deleteTFA: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
var values = me.lookup('totp-form').getValues();
|
var values = me.lookup('totp_form').getValues();
|
||||||
var params = {
|
var params = {
|
||||||
userid: me.getView().userid,
|
userid: me.getView().userid,
|
||||||
action: 'delete'
|
action: 'delete'
|
||||||
@ -240,7 +240,7 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
data += String.fromCharCode(b-26 + 0x32);
|
data += String.fromCharCode(b-26 + 0x32);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
me.lookup('tfa-secret').setValue(data);
|
me.lookup('tfa_secret').setValue(data);
|
||||||
},
|
},
|
||||||
|
|
||||||
startU2FRegistration: function() {
|
startU2FRegistration: function() {
|
||||||
@ -290,7 +290,7 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
xtype: 'form',
|
xtype: 'form',
|
||||||
layout: 'anchor',
|
layout: 'anchor',
|
||||||
border: false,
|
border: false,
|
||||||
reference: 'totp-form',
|
reference: 'totp_form',
|
||||||
fieldDefaults: {
|
fieldDefaults: {
|
||||||
labelWidth: 120,
|
labelWidth: 120,
|
||||||
anchor: '100%',
|
anchor: '100%',
|
||||||
@ -379,7 +379,7 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
{
|
{
|
||||||
title: 'U2F',
|
title: 'U2F',
|
||||||
itemId: 'u2f-panel',
|
itemId: 'u2f-panel',
|
||||||
reference: 'u2f-panel',
|
reference: 'u2f_panel',
|
||||||
border: false,
|
border: false,
|
||||||
padding: '5 5',
|
padding: '5 5',
|
||||||
layout: {
|
layout: {
|
||||||
@ -430,7 +430,7 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: gettext('Delete'),
|
text: gettext('Delete'),
|
||||||
reference: 'delete-button',
|
reference: 'delete_button',
|
||||||
handler: 'deleteTFA',
|
handler: 'deleteTFA',
|
||||||
bind: {
|
bind: {
|
||||||
disabled: '{tfa_required}'
|
disabled: '{tfa_required}'
|
||||||
|
Loading…
Reference in New Issue
Block a user