fix: remove password complexity validation from login

This commit is contained in:
2025-12-26 17:35:59 +01:00
parent 027df4f60c
commit 3f4cad5488

View File

@@ -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