Пример #1
0
 public function actionChangePassword()
 {
     $model = new ChangePasswordForm();
     if ($model->load(\Yii::$app->request->post()) && $model->changepassword()) {
         $this->refresh();
     }
     return $this->render('change-password', ['model' => $model]);
 }