From c338deea5a67e9045bd76529f8bbbf96096438d7 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 29 Aug 2026 02:45:10 +0300 Subject: [PATCH] fix: Add missing JS showSuccess and showError to StudentPortal fixing UI freeze during OTP --- backend/app/Views/StudentPortal.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/app/Views/StudentPortal.php b/backend/app/Views/StudentPortal.php index 8561372..533263e 100644 --- a/backend/app/Views/StudentPortal.php +++ b/backend/app/Views/StudentPortal.php @@ -1973,6 +1973,14 @@ class StudentPortal // ========================================== // Auth Handlers (OTP) // ========================================== + function showError(msg) { + alert('⚠️ ' + msg); + } + + function showSuccess(msg) { + alert('✅ ' + msg); + } + async function requestStudentOtp() { const phone = document.getElementById('student_phone').value.trim(); if (!phone) {