code: public function update(IEventContainer $eventContainer, array $values)
      {
          $user = $this->identityModel->getByEmail($values['email']);
          if ($user) {
              $hash = $this->identityModel->getEncodeHash($user['id'], $user['login'], $this->validate);
  
              /** @var Presenter $component */
              $component = $eventContainer->getComponent();
              $eventContainer->addValues($user->toArray());
              $eventContainer->addValues(['approve_link' => $component->presenter->link($this->destination, $hash)]);
          } else {
              throw new EventException('User does not exist or not active!');
          }
      }
docs: Update.
  
  @param IEventContainer $eventContainer
  @param array           $values
  @throws EventException
  @throws InvalidLinkException