From 3d0c266b7ada7108326c69529cf3152dd47e452a Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 21 Jul 2026 20:55:20 +0300 Subject: [PATCH] Update: 2026-07-21 20:55:19 --- backend/auth/otp/providers.php | 10 +++------- siro_rider/lib/controller/functions/upload_image.dart | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/backend/auth/otp/providers.php b/backend/auth/otp/providers.php index 634ff35e..60539aee 100644 --- a/backend/auth/otp/providers.php +++ b/backend/auth/otp/providers.php @@ -87,11 +87,8 @@ function getNabehBearerToken(): ?string { 'Content-Type: application/json' ]); - $debugLog = "[ " . date('Y-m-d H:i:s') . " ]\n"; - $debugLog .= "Request to: $apiUrl\n"; - $debugLog .= "Payload: " . json_encode($payload) . "\n"; - $debugLog .= "Response: " . $response . "\n"; - file_put_contents(__DIR__ . '/../../../logs/nabeh_debug.txt', $debugLog, FILE_APPEND); + $debugLog = "[Nabeh Auth Debug] Request: $apiUrl | Response: $response"; + error_log($debugLog); if ($response) { $decoded = json_decode($response, true); @@ -102,8 +99,7 @@ function getNabehBearerToken(): ?string { if ($redis) { try { $redis->setex('nabeh_bearer_token', 86400, $token); - $debugLog = "Token cached in Redis successfully.\n"; - file_put_contents(__DIR__ . '/../../../logs/nabeh_debug.txt', $debugLog, FILE_APPEND); + error_log("[Nabeh Auth Debug] Token cached in Redis successfully."); } catch (Exception $e) { $msg = "⚠️ [Nabeh Auth Redis Cache Save] Error saving token: " . $e->getMessage(); error_log($msg); diff --git a/siro_rider/lib/controller/functions/upload_image.dart b/siro_rider/lib/controller/functions/upload_image.dart index cd02f733..02c29b70 100644 --- a/siro_rider/lib/controller/functions/upload_image.dart +++ b/siro_rider/lib/controller/functions/upload_image.dart @@ -15,6 +15,7 @@ import '../../constant/char_map.dart'; import '../../constant/colors.dart'; import '../../constant/info.dart'; import '../../main.dart'; +import 'encrypt_decrypt.dart'; class ImageController extends GetxController { File? myImage;