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([