]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
add a filter mask for the TFA Secret
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 5 Apr 2019 06:33:00 +0000 (08:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Apr 2019 07:20:47 +0000 (09:20 +0200)
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@proxmox.com>
www/manager6/dc/TFAEdit.js

index 31f2ce78c3fffd7eb1c16cfbdbc0e513a24b1910..76ab8d06064b05eba52fcf3bc686b4f7d0a1a7df 100644 (file)
@@ -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
                                    },