From d3f2e69cadc14aa43a3bab61df07c004b99a93f7 Mon Sep 17 00:00:00 2001 From: Shannon Sterz Date: Fri, 4 Oct 2024 15:40:54 +0200 Subject: [PATCH] ui: set min length for new passwords to 8 Signed-off-by: Shannon Sterz --- www/config/UserView.js | 1 + www/window/UserEdit.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/www/config/UserView.js b/www/config/UserView.js index 812cad39..418dc122 100644 --- a/www/config/UserView.js +++ b/www/config/UserView.js @@ -61,6 +61,7 @@ Ext.define('PBS.config.UserView', { Ext.create('Proxmox.window.PasswordEdit', { userid: selection[0].data.userid, confirmCurrentPassword: Proxmox.UserName !== 'root@pam', + minLength: 8, }).show(); }, diff --git a/www/window/UserEdit.js b/www/window/UserEdit.js index d2f4b316..bdedb6fc 100644 --- a/www/window/UserEdit.js +++ b/www/window/UserEdit.js @@ -91,7 +91,7 @@ Ext.define('PBS.window.UserEdit', { xtype: 'textfield', inputType: 'password', fieldLabel: gettext('Password'), - minLength: 5, + minLength: 8, allowBlank: false, name: 'password', listeners: {