constant MAX_PASSWORD_LENGTH_ALLOWED
Ruby on Rails 5.0.7.2
Since v4.2.11.3 Last seen in v8.1.3.1BCrypt hash function can handle maximum 72 characters, and if we pass password of length more than 72 characters it ignores extra characters. Hence need to put a restriction on password length.