Skip to content

Commit

Permalink
Ticket 557: For deleting multiple users too
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Oct 25, 2018
1 parent 811ffb2 commit 4f586ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/modules/user/controllers/admin/Index.php
Expand Up @@ -87,7 +87,8 @@ public function indexAction()
$userMapper = new UserMapper();
$authTokenMapper = new AuthTokenMapper();
$statisticMapper = new StatisticMapper();

$authProviderMapper = new AuthProvider();

$this->getLayout()->getAdminHmenu()
->add($this->getTranslator()->trans('menuUser'), ['action' => 'index']);

Expand All @@ -100,6 +101,7 @@ public function indexAction()
$userMapper->delete($deleteUser->getId());
$authTokenMapper->deleteAllAuthTokenOfUser($deleteUser->getId());
$statisticMapper->deleteUserOnline($deleteUser->getId());
$authProviderMapper->deleteUser($userId);
}
}
}
Expand Down

0 comments on commit 4f586ea

Please sign in to comment.