mirror of https://github.com/MISP/MISP
fix: [API] resetting the authkey didn't respond with the new key before, making automation difficult.
parent
6f46c022de
commit
7b34e8cacb
|
@ -1148,7 +1148,7 @@ class UsersController extends AppController
|
|||
$this->_refreshAuth();
|
||||
$this->redirect($this->referer());
|
||||
} else {
|
||||
return $this->RestResponse->saveSuccessResponse('User', 'resetauthkey', $id, $this->response->type(), 'User\'s authkey has been reset.');
|
||||
return $this->RestResponse->saveSuccessResponse('User', 'resetauthkey', $id, $this->response->type(), 'Authkey updated: ' . $newkey);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue