Namespace
- MODULE ActiveModel::SecurePassword::ClassMethods
- CLASS ActiveModel::SecurePassword::InstanceMethodsOnActivation
Constants
DEFAULT_RESET_TOKEN_EXPIRES_IN | = | 15.minutes |
MAX_PASSWORD_LENGTH_ALLOWED | = | 72 |
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. |