ui: set min length for new passwords to 8

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
This commit is contained in:
Shannon Sterz 2024-10-04 15:40:54 +02:00 committed by Thomas Lamprecht
parent fb5b6f3eab
commit d3f2e69cad
2 changed files with 2 additions and 1 deletions

View File

@ -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();
},

View File

@ -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: {