I understand why no one can change admin's password - but can't admin change his/her own password?!?!
Only through DB?

Comments

killes@www.drop.org’s picture

I actually don't know why I did this...

greggles’s picture

Title: admin cannot change own password - intentioanl? » Allow uid 1 to change password
Version: 5.x-1.0 » 6.x-1.x-dev
Component: Documentation » Code
Category: support » bug

Seems better?

The alternative is that we should provide some documentation to say "use drush to change uid1 password" (since it does passwords now).

coltrane’s picture

Status: Active » Closed (works as designed)

In 6.x UID 1 can change his/her password:

case 'user_profile_form': // Prevent modifying user/1
      if ($form['#uid'] === '1') {
        global $user;
        // Allow user/1 to edit own details.
        if ($user->uid != 1) {
          drupal_set_message('You must login as this user (user/1) to modify the email address and password for this account.');
          $form['account']['mail']['#access'] = FALSE;
          $form['account']['pass']['#access'] = FALSE;
        }
      }
      break;