From 4d171b4ff72ab05e87c8d57bdb9cd75eda55ac36 Mon Sep 17 00:00:00 2001 From: sysops Date: Wed, 29 Jul 2026 15:03:21 +0200 Subject: [PATCH] Harden UI: login brute-force throttle, security headers, Secure cookie flag - New in-memory login throttle (handler/login_throttle.go): 5 failed attempts per IP or per username within 5 minutes locks that key out for 5 minutes, applied to both /login and the TOTP verification step, which previously had no rate limiting at all - router.New now adds middleware.Secure with X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and HSTS (only when cookies are Secure, implying an HTTPS deployment). No CSP: the existing templates rely on inline