Reset password in drupal 8 using drush

Created on 20 January 2015, almost 10 years ago
Updated 25 August 2023, about 1 year ago

Hi, after installing drupal 8, I thought of resetting password through drush. But don't find any documentation regarding this.
In drupal 7, we can reset password easily by

drush sqlq "select name from users where uid=1"
drush upwd admin --password=pass

But in drupal 8, hashed password is stored in users_field_data table. Is there any similar way to update password in drupal 8 also.

Feature request
Status

Closed: works as designed

Version

6.0

Component

User Commands

Created by

🇮🇳India narendraR Jaipur, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024