// 假设用户已通过身份验证 $userId = $_SESSION['user_id']; // 获取表单数据 $newPassword = $_POST['new_password']; $confirmPassword = $_PO...