/**
  * set new password
  * @param $token
  * @return string|\yii\web\Response
  */
 public function actionResetConfirm($token)
 {
     $this->layout = 'login';
     $model = new ResetPasswordForm();
     $account = Account::findByPasswordResetToken($token);
     if ($account) {
         if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->setPassword($account)) {
             Yii::$app->getSession()->setFlash('success', Yii::t('app', 'New password was saved.'));
             return $this->redirect(['/account/login']);
         }
     }
     return $this->render('reset-confirm', ['model' => $model, 'account' => $account]);
 }