I was experiencing the same issue, but unfortunately @adamdipardo fix didn’t hold. It did re-enable the password field, however when I then typed into the Repeat Password (required) box, it would remove text from the Password (required) input.
As well as the above fix, I needed a secondary change which was to update the field IDs in cuwp.php to not use the IDs pass1 and pass2. The specific issue was being caused by code in the WP core file user-profile.js
– particularly this function
/*
* Fix a LastPass mismatch issue, LastPass only changes pass2.
*
* This fixes the issue by copying any changes from the hidden
* pass2 field to the pass1 field, then running check_pass_strength.
*/
$pass2 = $("#pass2").on("input", function () {
if ($pass2.val().length > 0) {
$pass1.val($pass2.val());
$pass2.val("");
currentPass = "";
$pass1.trigger("pwupdate");
}
});
This particular change is over 8 years old now, so I’m not sure why it’s suddenly presenting an issue.
However, by changing the field IDs in cuwp.php to cuwp-pass1
and cuwp-pass2
this resolves the issue and I can successfully register users again.
<tr class="form-field form-required">
<th scope="row"><label for="cuwp_pass1"><?php _e('Password', 'create-user-with-password-multisite'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
<td><input name="cuwp_pass1" type="password" id="cuwp_pass1" autocomplete="off" /><input class="hidden" value=" " /></td>
</tr>
<tr class="form-field form-required">
<th scope="row"><label for="cuwp_pass2"><?php _e('Repeat Password', 'create-user-with-password-multisite'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
<td><input name="cuwp_pass2" type="password" id="cuwp_pass2" autocomplete="off" /></td>
</tr>