Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshirohit100/3bac521167069f7dfa8e8019270e4f0a to your computer and use it in GitHub Desktop.
Save joshirohit100/3bac521167069f7dfa8e8019270e4f0a to your computer and use it in GitHub Desktop.
drush -l [URL HERE] ev '$uid=UIDHERE; $user=\Drupal\user\Entity\User::load($uid);$user->set("field_password_expiration", 0);$user->save();'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment