X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fremoveme.php;h=bdc49ab745ebb7cddc14beb0881a8edad0cb636a;hb=fca93793480839660870e899bea88f3637859fff;hp=5df3360655d61c2ec14f5733b1b1e66ac58d5907;hpb=28090bd79376f3a7c0708eeb4e36a25fd782c240;p=friendica.git diff --git a/mod/removeme.php b/mod/removeme.php index 5df3360655..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->getUserId(), trim($_POST['qxz_password']))) { - User::remove($a->getUserId()); + if (User::getIdFromPasswordAuthentication($a->getLoggedInUserId(), trim($_POST['qxz_password']))) { + User::remove($a->getLoggedInUserId()); unset($_SESSION['authenticated']); unset($_SESSION['uid']);