Avoid PHP notice when regenerating API token for a user
This commit is contained in:
parent
873cd5aa94
commit
eab2d872a8
|
|
@ -11,6 +11,7 @@ Improvements:
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
|
||||||
* Ensure project tags are removed when the project is removed
|
* Ensure project tags are removed when the project is removed
|
||||||
|
* Avoid PHP notice when regenerating API token for a user
|
||||||
|
|
||||||
Version 1.0.43 (April 30, 2017)
|
Version 1.0.43 (April 30, 2017)
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class UserApiAccessController extends BaseController
|
||||||
'api_access_token' => Token::getToken(),
|
'api_access_token' => Token::getToken(),
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->renderResponse();
|
$this->renderResponse($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function remove()
|
public function remove()
|
||||||
|
|
@ -45,10 +45,10 @@ class UserApiAccessController extends BaseController
|
||||||
'api_access_token' => null,
|
'api_access_token' => null,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->renderResponse();
|
$this->renderResponse($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function renderResponse()
|
protected function renderResponse(array $user)
|
||||||
{
|
{
|
||||||
if ($this->request->isAjax()) {
|
if ($this->request->isAjax()) {
|
||||||
$this->show();
|
$this->show();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue