Jan 24, 2018 in Drupal 8, Snippets

I started using an automated script for my drupal installation, which will generate an admin user. But, after installation I have to edit the password. I won't be able to do this unless I specify my current password. Using the following drush script, I can edit the current pass:

drush upwd admin --password="MY_NEW_PASSWORD"

Drush 9:

drush upwd admin password=password