Update: 2026-06-13 15:43:50
This commit is contained in:
@@ -9,9 +9,6 @@ if (empty($inviteCode) || empty($passengerID)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// 🔐 تشفير كود الدعوة قبل البحث
|
||||
$inviteCodeEncrypted = $encryptionHelper->encryptData($inviteCode);
|
||||
|
||||
try {
|
||||
$checkSql = "SELECT `id`, `expirationTime` FROM `invitesToPassengers`
|
||||
WHERE `inviteCode` = :inviteCode
|
||||
@@ -19,7 +16,7 @@ try {
|
||||
AND `isGiftToken` = 0";
|
||||
|
||||
$checkStmt = $con->prepare($checkSql);
|
||||
$checkStmt->bindParam(':inviteCode', $inviteCodeEncrypted);
|
||||
$checkStmt->bindParam(':inviteCode', $inviteCode);
|
||||
$checkStmt->execute();
|
||||
|
||||
if ($checkStmt->rowCount() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user