diff --git a/backend/src/server.js b/backend/src/server.js index 2c1c459..64f4a64 100644 --- a/backend/src/server.js +++ b/backend/src/server.js @@ -71,9 +71,12 @@ const iconsDir2 = path.join(_dataDir, 'icons'); app.use('/api/icons-files', express.static(iconsDir2, { maxAge: '1h', fallthrough: false })); // Basic rate-limit on auth endpoints +// Seuil relevé (50 → 300) : usage local mono-utilisateur/multi-investisseur avec +// beaucoup d'allers-retours de test (login, 2FA, création de comptes admin/invitation…), +// l'ancien seuil de 50 req/15min était atteint trop facilement en usage normal. const authLimiter = rateLimit({ windowMs: 15 * 60 * 1000, - max: 50, + max: 300, standardHeaders: true, legacyHeaders: false, }); diff --git a/frontend/src/pages/MonCompte.jsx b/frontend/src/pages/MonCompte.jsx index dd704fd..62af227 100644 --- a/frontend/src/pages/MonCompte.jsx +++ b/frontend/src/pages/MonCompte.jsx @@ -43,7 +43,7 @@ function ProfileSelect({ label, options, value, onChange }) { return (