From cfe60cfb8eb02978c29bed488896b08afbcfc29b Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Tue, 24 Jun 2025 01:11:49 +0300 Subject: [PATCH] chore: corrected misleading error descriptions, removed redundant comments --- backend/internal/utils/security.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/utils/security.go b/backend/internal/utils/security.go index 4b18f05..2983f02 100644 --- a/backend/internal/utils/security.go +++ b/backend/internal/utils/security.go @@ -45,7 +45,7 @@ func ValidatePassword(password string) error { if cfg.PasswordCheckCases { differentCasesPresent := regexp.MustCompile(`(?=.*[a-z])(?=.*[A-Z])`).MatchString(password); if !differentCasesPresent { - return errors.New("Password must contain at least 1 number") + return errors.New("Password must have uppercase and lowercase characters") } }