has_secure_password(attribute = :password, validations: true, reset_token: true) Link Adds methods to set and authenticate against a BCrypt password. This mechanism requires you to have a XXX_digest attribute, where XXX is the attribute name of your desired password. The following validations are added automatically: Password must be present on creation Password length should be less than or equal
{{#tags}}- {{label}}
{{/tags}}