* [FIX] Wrong type casting on API parameter

This commit is contained in:
nuxsmin
2018-08-28 02:49:43 +02:00
parent 5f7f3072e4
commit 7fcb8aa733
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ final class AccountController extends ControllerBase
$accountRequest = new AccountRequest();
$accountRequest->id = $this->apiService->getParamInt('id', true);
$accountRequest->pass = $this->apiService->getParamString('pass', true);
$accountRequest->passDateChange = $this->apiService->getParamString('expireDate');
$accountRequest->passDateChange = $this->apiService->getParamInt('expireDate');
$accountRequest->userEditId = $this->context->getUserData()->getId();
$this->accountService->editPassword($accountRequest);

View File

@@ -65,7 +65,7 @@ final class ApiResponse
/**
* @param mixed $result
* @param int|null $itemId
* @param int $itemId
* @param string|null $message
*
* @return ApiResponse