Forum Replies Created

Viewing 1 replies (of 1 total)
  • Also experiencing the same issue recently. Seems like some JavaScript is adding the “disabled” attribute to the field, unsure why.

    But I noticed that the hook the plugin uses (“user_new_form”) is called twice, once for the “Add Existing User” form, and once for the “Add New User” form. This means the password fields are being added to the HTML twice, and I think something (WordPress?) is disabling the password field automatically because it detects two password fields with the same ID. Maybe a security thing?

    I can temporarily get around the issue by modifying the plugin code, changing lines 47-48 of cuwp.php to read:

    public function cuwp_plug_pass($type) {
    if ($type != "add-new-user") return; ?>

    This prevents the plugin from outputting the form for the “Add Existing User” form, and this then keeps the password field editable.

Viewing 1 replies (of 1 total)