- if (User::getIdFromPasswordAuthentication($a->getUserId(), trim($_POST['qxz_password']))) {
- User::remove($a->getUserId());
+ if (User::getIdFromPasswordAuthentication($a->getLoggedInUserId(), trim($_POST['qxz_password']))) {
+ User::remove($a->getLoggedInUserId());