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