code: public function actionResend()
      {
          if ($this->module->enableConfirmation == false) {
              throw new NotFoundHttpException;
          }
  
          $model = \Yii::createObject(ResendForm::className());
  
          $this->performAjaxValidation($model);
  
          if ($model->load(\Yii::$app->request->post()) && $model->resend()) {
              return $this->render('/message', [
                  'title'  => \Yii::t('user', 'A new confirmation link has been sent'),
                  'module' => $this->module,
              ]);
          }
  
          return $this->render('resend', [
              'model' => $model
          ]);
      }
docs: Displays page where user can request new confirmation token. If resending was successful, displays message.
  @return string
  @throws \yii\web\HttpException