Remove direct calls to App->user
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user