fix: Add missing JS showSuccess and showError to StudentPortal fixing UI freeze during OTP

This commit is contained in:
Hamza-Ayed
2026-08-29 02:45:10 +03:00
parent 3d09b8235d
commit c338deea5a
+8
View File
@@ -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) {