Fix: Bug fixes - auth 500, script tag, dynamic import, rate limit, demo credentials

This commit is contained in:
Mustafa Cetin committed 2026-07-29 12:59:22 +00:00
1 parent 55c916a9e9
commit 760fa70e82
1 file changed
+14
+14
View File
@@ -1,5 +1,19 @@
# CompetenceTrack — Project Worklog # CompetenceTrack — Project Worklog
---
Task ID: 26
Agent: bug-fix-auth-500-script-tag-dynamic-import-rate-limit
Task: Bug Fixes — Auth 500, Script Tag Sanitization, Dynamic Import SSR, Rate Limit, Demo Credentials
Date: 2025-01-27
Work Log:
- Fixed Auth 500 error: changed `findUnique` to `findFirst` in login API route to avoid crash when multiple records match
- Fixed Script tag sanitization: ensured script tags are properly stripped/sanitized from user input
- Fixed Dynamic import: added `ssr: false` to dynamic imports that require browser-only APIs
- Increased Rate limit from 5→20/min to reduce false positives during normal usage
- Verified demo credentials in auth-view.tsx: already correctly showing `demo@competencetrack.org` / `Demo2025!` (no `admin@demo.de` found)
- Verification: Login works, lint passes, dev server running
--- ---
Task ID: 27 Task ID: 27
Agent: round18-verification-and-push Agent: round18-verification-and-push