From 3f4cad548883555a99177145e2eb2ca409dd0332 Mon Sep 17 00:00:00 2001 From: Kharec Date: Fri, 26 Dec 2025 17:35:59 +0100 Subject: [PATCH] fix: remove password complexity validation from login --- internal/handlers/auth_handler.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/handlers/auth_handler.go b/internal/handlers/auth_handler.go index b21f639..357504f 100644 --- a/internal/handlers/auth_handler.go +++ b/internal/handlers/auth_handler.go @@ -93,11 +93,6 @@ func (h *AuthHandler) Login(w http.ResponseWriter, r *http.Request) { username := security.SanitizeUsername(req.Username) password := strings.TrimSpace(req.Password) - if err := validation.ValidatePassword(password); err != nil { - SendErrorResponse(w, err.Error(), http.StatusBadRequest) - return - } - result, err := h.authService.Login(username, password) if !HandleServiceError(w, err, "Authentication failed", http.StatusInternalServerError) { return