Implemented proposals from comprehensive QA review: 1. extend-csrf-protection - Add POST to CSRF protected methods in frontend - Global CSRF middleware for all state-changing operations - Update tests with CSRF token fixtures 2. tighten-cors-websocket-security - Replace wildcard CORS with explicit method/header lists - Disable query parameter auth in production (code 4002) - Add per-user WebSocket connection limit (max 5, code 4005) 3. shorten-jwt-expiry - Reduce JWT expiry from 7 days to 60 minutes - Add refresh token support with 7-day expiry - Implement token rotation on refresh - Frontend auto-refresh when token near expiry (<5 min) 4. fix-frontend-quality - Add React.lazy() code splitting for all pages - Fix useCallback dependency arrays (Dashboard, Comments) - Add localStorage data validation in AuthContext - Complete i18n for AttachmentUpload component 5. enhance-backend-validation - Add SecurityAuditMiddleware for access denied logging - Add ErrorSanitizerMiddleware for production error messages - Protect /health/detailed with admin authentication - Add input length validation (comment 5000, desc 10000) All 521 backend tests passing. Frontend builds successfully. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
948 B
JSON
30 lines
948 B
JSON
{
|
|
"login": {
|
|
"title": "登入",
|
|
"subtitle": "登入您的帳戶",
|
|
"email": "電子郵件",
|
|
"emailPlaceholder": "請輸入電子郵件",
|
|
"password": "密碼",
|
|
"passwordPlaceholder": "請輸入密碼",
|
|
"rememberMe": "記住我",
|
|
"forgotPassword": "忘記密碼?",
|
|
"submit": "登入",
|
|
"loggingIn": "登入中...",
|
|
"noAccount": "還沒有帳戶?",
|
|
"signUp": "註冊"
|
|
},
|
|
"errors": {
|
|
"invalidCredentials": "電子郵件或密碼錯誤",
|
|
"accountLocked": "帳戶已被鎖定,請聯繫管理員",
|
|
"emailRequired": "請輸入電子郵件",
|
|
"passwordRequired": "請輸入密碼",
|
|
"invalidEmail": "請輸入有效的電子郵件地址",
|
|
"loginFailed": "登入失敗,請稍後再試",
|
|
"sessionExpired": "您的登入時段已過期,請重新登入。"
|
|
},
|
|
"welcome": {
|
|
"title": "專案控制中心",
|
|
"subtitle": "管理您的專案、任務和團隊"
|
|
}
|
|
}
|