/**
  * Receive token, find user by it and confirm email
  *
  * @param string $token
  *
  * @throws \yii\web\NotFoundHttpException
  * @return string|\yii\web\Response
  */
 public function actionConfirmEmailReceive($token)
 {
     $user = User::findByConfirmationToken($token);
     if (!$user) {
         throw new NotFoundHttpException(Yii::t('yii', 'Page not found.'));
     }
     $user->email_confirmed = 1;
     $user->removeConfirmationToken();
     $user->save(false);
     return $this->renderIsAjax('confirm-email-success', compact('user'));
 }