diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-07-31 17:42:27 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-07-31 17:42:43 -0400 |
commit | ff657e73f0b61a7e224a9f158467ed2ec915bd9b (patch) | |
tree | 9a7335c2b8df7849949f0ffa5708822774e46668 /activemodel/lib | |
parent | 84f5d2b9babb70747f9193a2743b987c2ab11894 (diff) | |
download | rails-ff657e73f0b61a7e224a9f158467ed2ec915bd9b.tar.gz rails-ff657e73f0b61a7e224a9f158467ed2ec915bd9b.tar.bz2 rails-ff657e73f0b61a7e224a9f158467ed2ec915bd9b.zip |
Talk about bytes not characters
[ci skip]
Closes #30012
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/secure_password.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index 197f7f20b9..86f051f5ce 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -4,8 +4,8 @@ module ActiveModel module SecurePassword extend ActiveSupport::Concern - # BCrypt hash function can handle maximum 72 characters, and if we pass - # password of length more than 72 characters it ignores extra characters. + # BCrypt hash function can handle maximum 72 bytes, and if we pass + # password of length more than 72 bytes it ignores extra characters. # Hence need to put a restriction on password length. MAX_PASSWORD_LENGTH_ALLOWED = 72 @@ -20,7 +20,7 @@ module ActiveModel # # The following validations are added automatically: # * Password must be present on creation - # * Password length should be less than or equal to 72 characters + # * Password length should be less than or equal to 72 bytes # * Confirmation of password (using a +password_confirmation+ attribute) # # If password confirmation validation is not needed, simply leave out the |