diff --git a/api/controllers/AccountsController.php b/api/controllers/AccountsController.php index 71ef948..3d611eb 100644 --- a/api/controllers/AccountsController.php +++ b/api/controllers/AccountsController.php @@ -111,6 +111,7 @@ class AccountsController extends Controller { /** @var Account $account */ $account = Yii::$app->user->identity; $model = new InitStateForm($account); + $model->load(Yii::$app->request->post()); if (!$model->sendCurrentEmailConfirmation()) { return [ 'success' => false,