Merge pull request #4323 from MrPetovan/bug/fix-removeme-auth

Fix wrong authenticate() parameter type in mod/removeme
This commit is contained in:
Michael Vogel 2018-01-24 18:18:50 +01:00 committed by GitHub
commit 6b44fbbda0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ function removeme_post(App $a)
return; return;
} }
if (User::authenticate($a->user['uid'], trim($_POST['qxz_password']))) { if (User::authenticate($a->user, trim($_POST['qxz_password']))) {
User::remove($a->user['uid']); User::remove($a->user['uid']);
// NOTREACHED // NOTREACHED
} }