Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $user = \Drupal\user\Entity\User::load($uid);
- $user->setPassword('newpassword');
- $user->save();
- Method 2: Drush:
- $ drush upwd 1 --password="newpassword"
- Method 3: Drupal Console:
- $ drupal user:password:reset
Add Comment
Please, Sign In to add comment