2

In the admin panel, if I go to "Users -> Your Profile" I don't have the inputs to set the password. I can only generate it, but I want to set it by hand. Is that some kind of bug, or was this intentionally removed from wordpress.

enter image description here

If I check html with firebug I can see that inputs are actually there, but they are hidden.

EDIT:

In some old wordpress installation that has not been updated I can still see inputs for password change. See this screenshot:

enter image description here

0

In the fairly recent past, WordPress changed how the password change works. It looks as though you can't set your own password; but in fact you still can: Click on "Generate Password," and then, when the automatically generated gobbledygook password comes up, simply edit that field to type in your desired password.

0

The "Generate password" is what you are looking for. Changing of password and password/login in general had some UI facelift in 4.3

  • are you saying that this has changed in 4.3 ? – user568021 Oct 3 '15 at 14:16
  • i don't understand why would they do that – user568021 Oct 3 '15 at 15:49
  • almost sure it was 4.3. You can probably search for the relevant trac issues. Have to admit that I don't like it much myself (too many click required), but what was there before, was also confusing and bad in its own way. – Mark Kaplun Oct 3 '15 at 17:09
0

This is a security "feature" for WordPress.

If you can set a users password, you can then login as that user and have access to their profile, content etc.

There is a php function wp_set_password( $password, $user_id ); you can use to force someone's password if you want to write some code.

There are plugins to change passwords such as https://wordpress.org/plugins/bulk-password-reset/

Finally, if you have access to phpmyadmin, then go to the wp-users table (assuming your database has the wp- prefix) and for the user whose password you want to change you click edit (as in edit that users's record). Type in the new password in the user_pass field, and in the functions column select MD5 which will encode the password and therefore WordPress will accept your change and re-encrypt the password without altering the actual password you set.

You must then update the user with the new password separately, or via plugin...

Note that Wordpress has a filter called show_password_fields, so if you want yourself and all users on that site to be able to edit their own password (a reasonable request) then add the following code to your theme functions.php

function users_rule_show_password_fields() {
    return true;
}
add_filter( 'show_password_fields', 'users_rule_show_password_fields' );

If you want only the admin to be able to do the changes use this code instead:

function users_rule_show_password_fields() {
    if (current_user_can('edit_users') {
        return true;
    } else {
        return false;
    }
}
add_filter( 'show_password_fields', 'users_rule_show_password_fields' );
  • what about just for myself? why I can't set password for my account? I remmember I could normally do this in the past. – user568021 Oct 3 '15 at 14:16
  • No problem - please see edit update – brianlmerritt Oct 3 '15 at 16:34
  • how would this code in my theme change anything here? we are talking about wp admin panel – user568021 Oct 3 '15 at 18:40
  • Did you try it? – brianlmerritt Oct 4 '15 at 10:02
  • i did.. no success – user568021 Oct 4 '15 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.