Triggering an action after user resets password? I was hoping there was hook_user_pass_reset, but I seem to be out of luck. Some background:


I made a new field on users called "email_confirmed"
This field gets set = 1 when the user has confirmed their email address
I don't use the "blocked" value, or the normal Drupal way, because I want users to still log in and do stuff. I only want to limit certain actions, which will only become possible after email_confirmed = 1


So all I want to do is update this field = 1, the moment the user uses the confirmation link to change their password. So it will not be good enough to this when the user changes his password. It needs to happen the moment the user has executed the confirmation link?
/**
 * 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
    }
  }
}