[pve-devel] [PATCH manager] add a filter mask for the TFA Secret
Dominik Csapak
d.csapak at proxmox.com
Fri Apr 5 08:33:00 CEST 2019
this way a user cannot (easily) enter wrong characters
else if an invalid Character is entered, one can still hit apply
but not all characters will be used for the secret
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/dc/TFAEdit.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/dc/TFAEdit.js b/www/manager6/dc/TFAEdit.js
index 31f2ce78..76ab8d06 100644
--- a/www/manager6/dc/TFAEdit.js
+++ b/www/manager6/dc/TFAEdit.js
@@ -328,6 +328,7 @@ Ext.define('PVE.window.TFAEdit', {
reference: 'tfa_secret',
regex: /^[A-Z2-7=]+$/,
regexText: 'Must be base32 [A-Z2-7=]',
+ maskRe: /[A-Z2-7=]/,
qrupdate: true,
flex: 4
},
--
2.11.0
More information about the pve-devel
mailing list