[pve-devel] applied: [PATCH manager] add a filter mask for the TFA Secret

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 5 09:33:30 CEST 2019


On 4/5/19 8:33 AM, Dominik Csapak wrote:
> 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
>  				    },
> 

applied




More information about the pve-devel mailing list