Repository navigation
Breaking
- Dropped support for Rails 8.0 and earlier
- Dropped support for Ruby 3.2
- Changed
user_agentcolumn inveri_sessionstable from string to text - Renamed account locking to suspension
- Added algorithm markers to stored password hashes
update_passwordnow terminates all sessions of the user by default- The tenant is now passed to
log_inandcurrent_tenantreturns the tenant of the current session - Models used as tenants must now be declared with
veri_tenant
Features
- Added
veri_tenantto declare tenant models and delete their sessions when they are destroyed - Added
shapeshifter_sessionsassociation to fetch the sessions in which a user is impersonating someone - Added
Veri::Session.from_requestmethod to fetch the session from a request object - Added
Veri::Session.shapeshiftedto fetch impersonating sessions - Added
Veri::Session.in_original_tenantto fetch impersonating sessions that return to a tenant - Added support for binary UUID primary keys in MySQL
Bugs
- Fixed Rails commands failing when the user model cannot be loaded
- Fixed migration helpers raising when the tenant has no sessions, which broke migrations on fresh databases
- Fixed
true_tenantreturning the impersonated tenant when the impersonator had no tenant - Fixed the generated migration failing when the user table's primary key is not
id - Fixed the generated migration not working with UUID primary keys on some databases
Misc
- The generator now takes the primary key type from the existing user table, making
--uuidunnecessary
To upgrade to v3.0.0, please refer to the migration guide