chore: fix UI

This commit is contained in:
2026-04-26 18:23:50 +02:00
parent 322882d587
commit a120ad6391
11 changed files with 317 additions and 44 deletions
@@ -479,10 +479,8 @@ func RateLimitMiddleware(c *gin.Context) {
// LoginRateLimitMiddleware limite les tentatives de connexion par IP.
// Config: 10 tentatives par 15 minutes.
func LoginRateLimitMiddleware(c *gin.Context) {
ip := c.GetHeader("X-Real-IP")
if ip == "" {
ip = c.ClientIP()
}
ip := c.ClientIP()
rateLimitKey := "ratelimit:login:" + ip