Files
ftdl/app/api/login/route.ts
tech 5365352331 fix: add cookie security attributes and error handling
- Add secure and sameSite attributes to cookie configuration
- Add try-catch block to handle malformed JSON and other errors
- Add validation for missing username or password fields

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 02:05:55 +08:00

1.0 KiB