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;
}
if (User::authenticate($a->user['uid'], trim($_POST['qxz_password']))) {
if (User::authenticate($a->user, trim($_POST['qxz_password']))) {
User::remove($a->user['uid']);
// NOTREACHED
}