From d6fa74e5dc0b4ab6865bb050d192b9cf4b33480e Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 21 Jul 2023 11:29:18 +0200 Subject: [bugfix] Change maximumPasswordLength to 72 bytes (#2012) --- internal/validate/formvalidation_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/validate/formvalidation_test.go') diff --git a/internal/validate/formvalidation_test.go b/internal/validate/formvalidation_test.go index a594c3763..accd48ab6 100644 --- a/internal/validate/formvalidation_test.go +++ b/internal/validate/formvalidation_test.go @@ -45,7 +45,7 @@ func (suite *ValidationTestSuite) TestCheckPasswordStrength() { err = validate.NewPassword(empty) if suite.Error(err) { - suite.Equal(errors.New("no password provided"), err) + suite.Equal(errors.New("no password provided / provided password was 0 bytes"), err) } err = validate.NewPassword(terriblePassword) @@ -75,7 +75,7 @@ func (suite *ValidationTestSuite) TestCheckPasswordStrength() { err = validate.NewPassword(tooLong) if suite.Error(err) { - suite.Equal(errors.New("password should be no more than 256 chars"), err) + suite.Equal(errors.New("password should be no more than 72 bytes, provided password was 571 bytes"), err) } err = validate.NewPassword(strongPassword) -- cgit v1.2.3