From cdb41721a055bcb19894fcd7f2864548613df542 Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Wed, 8 Oct 2025 15:42:34 +0530 Subject: [PATCH] GWM --- app/Helpers/sms_helper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Helpers/sms_helper.php b/app/Helpers/sms_helper.php index c4fa87aa..0045a61c 100644 --- a/app/Helpers/sms_helper.php +++ b/app/Helpers/sms_helper.php @@ -16,6 +16,8 @@ if (!function_exists('sendOtpSms')) { // Replace variables {#var#} $message = "Hi, Your One Time Code for logging into Nhance {$appName} App is {$otp}. Valid for 3 minutes. Please do not share this with anyone. -NHANCE"; + log_message('info' , 'SMS - Message '.$message); + // Build the API URL $url = "https://smsapi.24x7sms.com/api_2.0/SendSMS.aspx?" . http_build_query([ 'APIKEY' => $apiKey, @@ -29,6 +31,8 @@ if (!function_exists('sendOtpSms')) { // Send request $response = @file_get_contents($url); + log_message('info' , 'SMS - Response '.$response); + // If response failed if ($response === FALSE) { return ['status' => 'failed', 'message' => 'Failed to send SMS.'];