- if((strlen($a->user['password'])) && ($encrypted === $a->user['password'])) {
- require_once('include/Contact.php');
- user_remove($a->user['uid']);
+ if (User::authenticate($a->user['uid'], trim($_POST['qxz_password']))) {
+ User::remove($a->user['uid']);