From 1103f6ffcf8ea2af0a660c648f208bb0a04c4027 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Tue, 21 Jul 2026 19:22:23 +0300 Subject: [PATCH] Update: 2026-07-21 19:22:23 --- backend/auth/otp/request.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/auth/otp/request.php b/backend/auth/otp/request.php index 58676f80..b508ca21 100644 --- a/backend/auth/otp/request.php +++ b/backend/auth/otp/request.php @@ -216,5 +216,6 @@ if ($sentSuccessfully) { jsonError("OTP sent but failed to save verification data"); } } else { - jsonError("Failed to send verification code. Please try again."); + $errDetail = !empty($GLOBALS['last_otp_error']) ? $GLOBALS['last_otp_error'] : "Failed to send verification code. Please try again."; + jsonError($errDetail); }