Update Saqel Platform: 2026-08-29 21:51:24
This commit is contained in:
@@ -550,7 +550,7 @@ class StudentPortal
|
||||
<main class="container" style="flex: 1; display: flex; flex-direction: column;">
|
||||
|
||||
<!-- 1. AUTHENTICATION VIEW (Phone + OTP) -->
|
||||
<div id="auth_box_view" class="auth-card-wrapper">
|
||||
<div id="auth_box_view" class="auth-card-wrapper" style="display: none;">
|
||||
<div class="auth-header">
|
||||
<h1 class="auth-title">تسجيل دخول الطالب 🎓</h1>
|
||||
<p class="auth-subtitle">أدخل رقم هاتفك لاستلام رمز التحقق الفوري (OTP) عبر واتساب.</p>
|
||||
@@ -1155,6 +1155,8 @@ class StudentPortal
|
||||
// Always verify session with server — don't render from cache directly
|
||||
initWebSocket(token);
|
||||
await checkStudentSession(token);
|
||||
} else {
|
||||
document.getElementById('auth_box_view').style.display = 'block';
|
||||
}
|
||||
|
||||
// Initialize Player with Active Real Lesson
|
||||
@@ -2199,6 +2201,7 @@ class StudentPortal
|
||||
});
|
||||
if (res.status === 401) {
|
||||
handleLogout();
|
||||
document.getElementById('auth_box_view').style.display = 'block';
|
||||
return;
|
||||
}
|
||||
const data = await res.json();
|
||||
@@ -2213,6 +2216,7 @@ class StudentPortal
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Student session check error:', e);
|
||||
document.getElementById('auth_box_view').style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user