query('UPDATE users SET password = \''.hash('sha512', $_POST['newpass1']).'\' WHERE id = '.$b_user['id']) or dash_fatal($db->error); if ($db->affected_rows < 1) dash_fatal('No user with your ID is in the database'); dash_fatal('Password changed successfully.'); } else if (!empty($_POST['changetype'])) { if ($b_user['password'] != hash('sha512', $_POST['curpass'])) dash_fatal('The password you entered does not match your current password.'); } ?>
Adjusting for =htmlentities($b_user['email']);?>
Your current password is needed to change your account settings.