1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Note maximum password length in USB key dialog

The password validation function for Intel AMT passwords enforces a maximum password length, but there's nothing in the UI to tell the user this or to indicate that a provided password is, specifically, too long.

This adds the maximum length to the UI.
This commit is contained in:
interfect 2025-01-26 09:56:28 -05:00 committed by GitHub
parent 3ee06abfe8
commit a96cdf31d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5926,7 +5926,7 @@
x += addHtmlFormFloating("New Password*", '<input id=dp1password1 type=password class="form-control" autocomplete=off maxlength=32 onchange=validateAmtAcmSetupEx() onkeyup=validateAmtAcmSetupEx() />');
x += addHtmlFormFloating("New Password*", '<input id=dp1password2 type=password class="form-control" autocomplete=off maxlength=32 onchange=validateAmtAcmSetupEx() onkeyup=validateAmtAcmSetupEx() />');
if ((features2 & 0x00000020) && (currentMesh.mtype == 1) && (serverinfo.amtProvServerMeshId == currentMesh._id)) { x += '<label><input id=dp1lanprov type=checkbox class="form-check-input me-2" /> ' + "Use for bare-metal LAN activation." + '</label>'; } // Intel AMT LAN provisioning server is active.
x += '<div><span id=dp10passNotify style="font-size:10px"> ' + "* 8 characters, 1 upper, 1 lower, 1 numeric, 1 non-alpha numeric." + '</span></div>';
x += '<div><span id=dp10passNotify style="font-size:10px"> ' + "* 8-16 characters, 1 upper, 1 lower, 1 numeric, 1 non-alpha numeric." + '</span></div>';
setModalContent('xxAddAgent', "Intel&reg; AMT ACM", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', showAmtAcmSetupEx);
Q('dp1password0').focus();