function UserSingle7::password

8.0.x UserSingle7.php UserSingle7::password($pass)
7.x UserSingle7.php UserSingle7::password($pass)
master UserSingle7.php UserSingle7::password($pass)

Change a user's password.

Parameters

$password:

Overrides UserSingleBase::password

File

lib/Drush/User/UserSingle7.php, line 44

Namespace

Drush\User

Class

UserSingle7

Code

function password($pass) {
  user_save($this->account, array('pass' => $pass));
}