This commit is contained in:
2026-06-28 15:53:21 +02:00
parent 0be86771e1
commit 3fc1311d50
5 changed files with 311 additions and 76 deletions

View File

@@ -164,6 +164,10 @@ AniWorld.AnimeSettingsManager = (function () {
if (resp.status === 401) {
showError('Not authenticated — please log in again.');
showErrorState('Authentication required.');
// Redirect to login, preserving the intended destination
setTimeout(function() {
window.location.href = '/login?next=' + encodeURIComponent(window.location.href);
}, 1500);
return;
}
if (resp.status === 404) {