Skip to content

Commit 161badb

Browse files
[ci skip] Merge pull request rails#48017 from chhhris/patch-1
Update CHANGELOG example related to Improve Password Length Validation for BCrypt Compatibility
2 parents 484dcb6 + 42a4fce commit 161badb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activemodel/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
```ruby
88
user = User.new(password: "a" * 73) # 73 characters
99
user.valid? # => false
10-
user.errors[:password] # => ["is too long (maximum is 72 characters)"]
10+
user.errors[:password] # => ["is too long"]
1111

1212

1313
user = User.new(password: "" * 25) # 25 characters, 75 bytes
1414
user.valid? # => false
15-
user.errors[:password] # => ["is too long (maximum is 72 bytes)"]
15+
user.errors[:password] # => ["is too long"]
1616
```
1717

1818
*ChatGPT*, *Guillermo Iguaran*

0 commit comments

Comments
 (0)