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)
|
// Auth Handlers (OTP)
|
||||||
// ==========================================
|
// ==========================================
|
||||||
|
function showError(msg) {
|
||||||
|
alert('⚠️ ' + msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showSuccess(msg) {
|
||||||
|
alert('✅ ' + msg);
|
||||||
|
}
|
||||||
|
|
||||||
async function requestStudentOtp() {
|
async function requestStudentOtp() {
|
||||||
const phone = document.getElementById('student_phone').value.trim();
|
const phone = document.getElementById('student_phone').value.trim();
|
||||||
if (!phone) {
|
if (!phone) {
|
||||||
|
|||||||
Reference in New Issue
Block a user