mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 03:10:11 +00:00
ui: tfa: fix secret validator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ca7f3b3496
commit
0bc11f81f1
@ -326,9 +326,8 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
emptyText: gettext('Unchanged'),
|
emptyText: gettext('Unchanged'),
|
||||||
name: 'secret',
|
name: 'secret',
|
||||||
reference: 'tfa_secret',
|
reference: 'tfa_secret',
|
||||||
validateValue: function(value) {
|
regex: /^[A-Z2-7=]+$/,
|
||||||
return value.match(/^[A-Z2-7=]$/);
|
regexText: 'Must be base32 [A-Z2-7=]',
|
||||||
},
|
|
||||||
qrupdate: true,
|
qrupdate: true,
|
||||||
flex: 4
|
flex: 4
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user