It can be really useful when you get a DB dump from a foreign place (for debugging, etc) and you need to jump into the site immediately. This is routine task with mysql command, but it can be done better with drush :)

CommentFileSizeAuthor
#2 user.drush_.inc_.gz544 bytesaron novak
user.drush_.inc_.gz550 bytesaron novak

Comments

dawehner’s picture

thx for provding this feature!!

but i'm wondering about

 $items['user password'] = array(
    'callback' => 'drush_user_password',
    'description' => 'Changes forgotten password.',
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
    'options' => $options,
    'arguments' => array(
       'user' => 'A username or a userid. Mandatory.',
       'user' => 'The new password. Mandatory.',
    ),

There is a not defined options variable

aron novak’s picture

StatusFileSize
new544 bytes

Alright, found an error, thank you :) It's fixed.

dawehner’s picture

personally i would also like to be able to send a new password per mail to a certain user, not sure whether this should be part of it

moshe weitzman’s picture

Personally, I think this a bit exotic a need for core drush. Perhaps in d7 we do this since you can set passwords with just SQL anymore. Meanwhile, you may use `sql cli` to quickly get to a mysql command line or `sql query` command.

I'll await further opinions.

moshe weitzman’s picture

Status: Needs review » Postponed

Lets do this when D7 is near release.

moshe weitzman’s picture

Priority: Critical » Minor
moshe weitzman’s picture

Status: Postponed » Closed (duplicate)