Support » Fixing WordPress » Can’t Set Password for New Users (WP 5.8.1)

  • Resolved anonmeimei

    (@anonmeimei)


    There used to be two password fields in the New User screen. One to write the password, and one to confirm the password. However, I’m only seeing one. After using the inspector tool, I found there’s a particular style being loaded that adds “display:none” to the second password field

    This is the html code of the missing password elements (second password field and Confirm Use of Weak password checkbox):

    <th scope="row"><label for="pass2">Repeat Password <span class="description">(required)</span></label></th>
    		<td>
    		<input name="pass2" type="password" id="pass2" autocomplete="off" aria-describedby="pass2-desc">
    		<p class="description" id="pass2-desc">Type the password again.</p>
    		</td>
    
    <th>Confirm Password</th>
    		<td>
    			<label>
    				<input type="checkbox" name="pw_weak" class="pw-checkbox">Confirm use of weak password</label>
    		</td>

    And this is the CSS that’s hiding them:

    
    .hidden, .js .closed .inside, .js .hide-if-js, .js .wp-core-ui .hide-if-js, .js.wp-core-ui .hide-if-js, .no-js .hide-if-no-js, .no-js .wp-core-ui .hide-if-no-js, .no-js.wp-core-ui .hide-if-no-js {
    display:none;
    }
    .pw-weak {
        display: none;
    }
    

    I have not added those styles myself, and after deactivating the plugins I think which might be causing them, the missing password elements still don’t show up.

Viewing 6 replies - 1 through 6 (of 6 total)
  • There used to be two password fields in the New User screen.

    Other than change, are you actually unable to create the user if you enter a STRONG password into the single password field? If so, what specific error message are you getting?

    I just setup a spanking-new WordPress test site: no plugin and default Twenty Twenty-One theme to test this out.

    I see only one password field (no confirmation field). But I’m able to create a new user and update an existing user’s password — with the single password field.

    Can’t Set Password for New Users (WP 5.8.1)… There used to be two password fields in the New User screen.

    Note also that this change came about way back in version 4.3, more than 6 years and 16 MAJOR versions ago, not something that was introduced in the latest 5.8.1.

    Thread Starter anonmeimei

    (@anonmeimei)

    @gappiah I cannot create a new user at all because WordPress requires I enter the password two times. Since the second password field is hidden, then I can’t do anything.

    Thread Starter anonmeimei

    (@anonmeimei)

    @gappiah When I was building my site locally (still in 5.8.1), I saw the password field and checkbox just fine. I recently made my site live, and now I’m seeing the problemm

    Thread Starter anonmeimei

    (@anonmeimei)

    This is the error I’m seeing: https://imgur.com/a/TgiDsjT

    I was having the same issue in version 5.73, and updated it to 5.81 in hopes that would resolve the issue, but the password verification box is hidden and, thus, no new users can be created.

    Has a workaround been developed?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t Set Password for New Users (WP 5.8.1)’ is closed to new replies.