X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fremoveme.php;h=bdc49ab745ebb7cddc14beb0881a8edad0cb636a;hb=b5d2d32b443f7aa8ec6e0e91f36da3cc0a0f2a82;hp=3c53ba4204f5ed53f922938a3403562b5fba9f11;hpb=befc2af5043a3afde251721c0d27df695db1bb7e;p=friendica.git diff --git a/mod/removeme.php b/mod/removeme.php index 3c53ba4204..bdc49ab745 100644 --- a/mod/removeme.php +++ b/mod/removeme.php @@ -69,8 +69,8 @@ function removeme_post(App $a) DI::emailer()->send($email); } - 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()); unset($_SESSION['authenticated']); unset($_SESSION['uid']);