1.11.0
-
The
Rodauth::Rails.authenticate
routing constraint has been added, which callsrodauth.require_account
instead ofrodauth.require_authentication
, and this way handles if the account has been deleted or closed from the console.Rails.application.routes.draw do constraints Rodauth::Rails.authenticate do mount Sidekiq::Web => "/sidekiq" end end
The previous
Rodauth::Rails.authenticated
routing constraint is now deprecated. -
The
Rodauth::Rails.lib
method now accept plugin options as well, just likeRodauth.lib
.RodauthMain = Rodauth::Rails.lib(render: false) do # ... end
-
Loading of Roda's
render
plugin and the Tilt gem will now be skipped whenrender: false
plugin option is passed in.class RodauthApp < Rodauth::Rails::App configure RodauthMain, render: false # skips loading render plugin and Tilt end
-
There have been several improvements to the
rodauth:routes
Rake task:- it now has a description and shows up in
rails -T
- two factor manage & auth JSON POST routes are now listed
- HTTP verbs are separated with
|
symbol, just like inrails routes
- the JS routes for WebAuthn features are excluded, since they stop being relevant with custom JS
- it now has a description and shows up in