Update: 2026-05-06 03:13:03
This commit is contained in:
@@ -82,8 +82,8 @@ $message = "رمز التحقق لتطبيق مُصادَق:\n*{$otp}*\n\nصال
|
||||
$smsSent = $whatsappService->sendMessage($phone, $message);
|
||||
|
||||
if (!$smsSent) {
|
||||
error_log("WARN: Failed to send OTP WhatsApp to phone hash: {$phoneHash}");
|
||||
// Still return success to not reveal info, but log the issue
|
||||
error_log("ERROR: Failed to send OTP WhatsApp to phone: {$phone}");
|
||||
json_error('عذراً، فشل في إرسال رمز التحقق. الرجاء التأكد من صحة رقم الواتساب الخاص بك والمحاولة مرة أخرى.', 500);
|
||||
}
|
||||
|
||||
// Log for development (REMOVE IN PRODUCTION!)
|
||||
|
||||
Reference in New Issue
Block a user