Remove direct calls to App->user

This commit is contained in:
Michael 2021-08-08 10:14:56 +00:00
commit fc283ab928
51 changed files with 238 additions and 166 deletions

View file

@ -70,7 +70,7 @@ function removeme_post(App $a)
}
if (User::getIdFromPasswordAuthentication($a->user, trim($_POST['qxz_password']))) {
User::remove($a->user['uid']);
User::remove($a->getUserId());
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);