mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:50:10 +00:00
Switch to User::authenticate
- Removed hash('whirlpool') to check password
This commit is contained in:
parent
483603e77c
commit
ec6f5193e2
5 changed files with 46 additions and 62 deletions
|
@ -26,9 +26,7 @@ function removeme_post(App $a)
|
|||
return;
|
||||
}
|
||||
|
||||
$encrypted = hash('whirlpool',trim($_POST['qxz_password']));
|
||||
|
||||
if ((strlen($a->user['password'])) && ($encrypted === $a->user['password'])) {
|
||||
if (User::authenticate($a->user['uid'], trim($_POST['qxz_password']))) {
|
||||
User::remove($a->user['uid']);
|
||||
// NOTREACHED
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue