fix: Add missing JS showSuccess and showError to StudentPortal fixing UI freeze during OTP
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user