diff options
author | 2023-07-21 11:29:18 +0200 | |
---|---|---|
committer | 2023-07-21 10:29:18 +0100 | |
commit | d6fa74e5dc0b4ab6865bb050d192b9cf4b33480e (patch) | |
tree | 4ecae32e4f8de8613f914d412810f26add9f2fd9 /internal/validate/formvalidation_test.go | |
parent | [docs] Apache setup for Caching assets and media (#2005) (#2005) (diff) | |
download | gotosocial-d6fa74e5dc0b4ab6865bb050d192b9cf4b33480e.tar.xz |
[bugfix] Change maximumPasswordLength to 72 bytes (#2012)
Diffstat (limited to 'internal/validate/formvalidation_test.go')
-rw-r--r-- | internal/validate/formvalidation_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |