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") } }