public function UserSingleBase::password

8.0.x UserSingleBase.php public UserSingleBase::password($password)
7.x UserSingleBase.php public UserSingleBase::password($password)
master UserSingleBase.php public UserSingleBase::password($password)

Change a user's password.

Parameters

$password:

1 method overrides UserSingleBase::password()
UserSingle7::password in lib/Drush/User/UserSingle7.php
Change a user's password.

File

lib/Drush/User/UserSingleBase.php, line 99

Namespace

Drush\User

Class

UserSingleBase

Code

public function password($password) {
  $this->account->setPassword($password);
  $this->account->save();
}