Fix setup to login redirect issue

- Fix setup.html to use redirect_url from API response instead of hardcoded '/'
- Add database creation (aniworld.db, cache.db) during setup process
- Setup now properly creates all required files for validation
- After setup completion, users are correctly redirected to /login
- Tested: setup API returns correct redirect_url, database files created, redirect works
This commit is contained in:
2025-10-06 13:32:35 +02:00
parent 6d0c3fdf26
commit 57d49bcf78
7 changed files with 90 additions and 52 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1,13 +1,13 @@
{
"security": {
"master_password_hash": "1353f6d9db7090c302864c2d6437dc11cc96cd66d59d7737d1b345603fdbdfda",
"salt": "a25e23440d681cef2d75c0adb6de0913359a1d8b9f98f9747fc75f53c79c4bd4",
"master_password_hash": "bab56314cf756abaa50615a4e5594683d0e5ce5ac1e051bc9eec683056eeacb0",
"salt": "salt_change_in_production_abcdef",
"session_timeout_hours": 24,
"max_failed_attempts": 5,
"lockout_duration_minutes": 30
},
"anime": {
"directory": "\\\\sshfs.r\\ubuntu@192.168.178.43\\media\\serien\\Serien",
"directory": "C:\\test\\anime",
"download_threads": 3,
"download_speed_limit": null,
"auto_rescan_time": "03:00",
@@ -45,5 +45,9 @@
"read_timeout": 300,
"enable_debug_mode": false,
"cache_duration_minutes": 60
},
"setup": {
"completed": true,
"completed_at": "2025-10-06 11:28:22.571378"
}
}

View File

@@ -1,48 +0,0 @@
{
"ui": {
"theme": "auto",
"density": "comfortable",
"language": "en",
"animations_enabled": true,
"sidebar_collapsed": false,
"grid_view": true,
"items_per_page": 20
},
"downloads": {
"auto_download": false,
"download_quality": "best",
"concurrent_downloads": 3,
"retry_failed": true,
"notification_sound": true,
"auto_organize": true
},
"notifications": {
"browser_notifications": true,
"email_notifications": false,
"webhook_notifications": false,
"notification_types": {
"download_complete": true,
"download_error": true,
"series_updated": false,
"system_alerts": true
}
},
"keyboard_shortcuts": {
"enabled": true,
"shortcuts": {
"search": "ctrl+f",
"download": "ctrl+d",
"refresh": "f5",
"select_all": "ctrl+a",
"help": "f1",
"settings": "ctrl+comma"
}
},
"advanced": {
"debug_mode": false,
"performance_mode": false,
"cache_enabled": true,
"auto_backup": true,
"log_level": "info"
}
}