fix: persist default secrets across restarts, auto-relogin on portal expiry, and remove legacy json migration
This commit is contained in:
parent
5d576137ae
commit
43f3891e9e
10 changed files with 835 additions and 625 deletions
|
|
@ -96,6 +96,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
|
||||
try {
|
||||
const res = await fetch('/api/syllabus/sync', { method: 'POST' });
|
||||
if (res.status === 401) {
|
||||
window.location.href = '/';
|
||||
return;
|
||||
}
|
||||
const data = await res.json();
|
||||
if (data.success) {
|
||||
showAlert(t('syllabus.updatedAlert'), 'info');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue