Clearance v2.0.0 Release Notes
Release Date: 2019-11-12 // over 4 years ago-
โ Added
- โ Add support for Rails version 6
- ๐ Allow
cookie_domain
to be configured with a lambda for custom configuration - โ Add ability to configure BCrypt computational cost of hash calculation.
- โ Add
same_site
configuration option for increased CSRF protection.
๐ Fixed
- ๐ Fix issue where invalid params could raise
NoMethodError
when updating and resetting passwords. - ๐
The backdoor auth mechanism now supports scenarios where
Rails.env
has been configured via env variables other thanRAILS_ENV
(RACK_ENV
for example).
โ Removed
- โ Removed support for Ruby versions older than 2.4
- โ Removed support for Rails versions older than 5.0
- โ Removed all deprecated code from Clearance 1.x
๐ Changed
- Flash messages now use
flash[:alert]
rather thanflash[:notice]
as they were used as errors more often than notices.