From f5a5ffc10cae7c6bce3196a824028f441e6f7d45 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 25 Jun 2026 04:00:27 +0300 Subject: [PATCH] Update: 2026-06-25 03:58:15 --- backend/auth/otp/verify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/auth/otp/verify.php b/backend/auth/otp/verify.php index 0794361..6d19b01 100644 --- a/backend/auth/otp/verify.php +++ b/backend/auth/otp/verify.php @@ -194,8 +194,8 @@ try { $driverData = $driver; $driverID = (string)$driver['id']; } else { - // توليد driverID مؤقت من رقم الهاتف (ثابت لنفس الرقم) - $driverID = 'temp_' . substr(hash('sha256', $phone_number), 0, 16); + // driverID ثابت ومشتق من رقم الهاتف (نفس الرقم = نفس الـ ID) + $driverID = substr(md5($phone_number), 0, 16); } jsonSuccess([