X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fremoveme.php;h=ae441e59364d0c5d7b8f820ed0ca69e610ceac19;hb=903bc9b679b93c217c0bd9bd3384ad90737ff523;hp=e8615feb7ca4fcdffcd87cae4d6bf78b370735c4;hpb=16c2705016554289b8e2644d8f2093fb0f16178a;p=friendica.git diff --git a/mod/removeme.php b/mod/removeme.php index e8615feb7c..ae441e5936 100644 --- a/mod/removeme.php +++ b/mod/removeme.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; @@ -53,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']);