ui: tfa: fix secret validator

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-04-04 11:09:49 +02:00
parent ca7f3b3496
commit 0bc11f81f1

View File

@ -326,9 +326,8 @@ Ext.define('PVE.window.TFAEdit', {
emptyText: gettext('Unchanged'),
name: 'secret',
reference: 'tfa_secret',
validateValue: function(value) {
return value.match(/^[A-Z2-7=]$/);
},
regex: /^[A-Z2-7=]+$/,
regexText: 'Must be base32 [A-Z2-7=]',
qrupdate: true,
flex: 4
},