mirror of https://github.com/MISP/MISP
[users:totp] set correct rest response action for totp_delete (#9303)
parent
4a01551e4a
commit
2f790c2f17
|
@ -1931,7 +1931,7 @@ class UsersController extends AppController
|
|||
$fieldsDescrStr = 'User (' . $id . '): ' . $user['User']['email'] . ' TOTP deleted';
|
||||
$this->User->extralog($this->Auth->user(), "update", $fieldsDescrStr, '');
|
||||
if ($this->_isRest()) {
|
||||
return $this->RestResponse->saveSuccessResponse('User', 'admin_totp_delete', $id, $this->response->type(), 'User TOTP deleted.');
|
||||
return $this->RestResponse->saveSuccessResponse('User', 'totp_delete', $id, $this->response->type(), 'User TOTP deleted.');
|
||||
} else {
|
||||
$this->Flash->success(__('User TOTP deleted'));
|
||||
$this->redirect('/admin/users/index');
|
||||
|
|
Loading…
Reference in New Issue