Triggering an action after user resets password?
/**
 * Implements hook_ENTITY_TYPE_update().
 */
function MODULE_user_update(Drupal\user\UserInterface $user) {
  if (!empty($user-&gt;original)) { // check previous value exists
    if($user-&gt;original-&gt;pass-&gt;value != $user-&gt;pass-&gt;value) { // check if pass changed
      $user-&gt;field_email_confirmed-&gt;value = 1; // set new value
    }
  }
}