diff --git a/lizmap/www/assets/jelix/js/jforms/password-editor.js b/lizmap/www/assets/jelix/js/jforms/password-editor.js index 0fd2391e40..db8d1cadf9 100644 --- a/lizmap/www/assets/jelix/js/jforms/password-editor.js +++ b/lizmap/www/assets/jelix/js/jforms/password-editor.js @@ -46,7 +46,9 @@ var JelixPasswordEditor = { } buttonRegen.addEventListener('click', function () { - inputEl.setAttribute('value', JelixPasswordEditor.generatePassword(minlength, Math.min(maxlength, 30))); + let password = JelixPasswordEditor.generatePassword(minlength, Math.min(maxlength, 30)); + inputEl.setAttribute('value', password); + inputEl.value = password; launchTimerListener(); }); buttonToggleVisibility.addEventListener('click', function () {