fix: persist default secrets across restarts, auto-relogin on portal expiry, and remove legacy json migration

This commit is contained in:
tyuXX 2026-11-12 08:02:57 +00:00
parent 5d576137ae
commit 43f3891e9e
10 changed files with 835 additions and 625 deletions

View file

@ -224,6 +224,10 @@ document.addEventListener('DOMContentLoaded', () => {
try {
const res = await fetch('/api/private-lessons/sync', { method: 'POST' });
if (res.status === 401) {
window.location.href = '/';
return;
}
const data = await res.json();
if (data.success) {