1.8.0
New features
-
The
rodauth:install
generator now accepts a table argument for generating configuration with a different table thanaccounts
.$ rails generate rodauth:install users # uses "users" table
-
The
rodauth:migration
generator now accepts a--prefix
option for using a different prefix thanaccount_*
for generated table definitions.$ rails generate rodauth:migration base active_sessions --prefix user # Add the following to your Rodauth configuration: # # accounts_table :users # active_sessions_table :user_active_session_keys # active_sessions_account_id_column :user_id
# db/migration/*_create_rodauth_user_base_active_sessions.rb class CreateRodauthUserBaseActiveSessions < ActiveRecord::Migration def change create_table :users do |t| ... end create_table :user_active_session_keys do |t| ... end end end
-
The
rodauth:install
generator now accepts--argon2
option for configuring password hashing using Argon2.
Other improvements
-
The
rodauth:install
generator now sets up Sequel in the Rodauth configuration instead of an initializer. Since Rodauth configuration is autoloaded, this shaves off ~200ms from boot time on my computer, and avoids breakingrails db:create
command when using thesql_log_normalizer
Sequel extension.# app/misc/rodauth_main.rb require "sequel/core" class RodauthMain < Rodauth::Rails::Auth configure do # ... db Sequel.postgres(extensions: :activerecord_connection, keep_reference: false) # ... end end
-
The mailer generated by
rodauth:install
generator now uses#email_to
and#email_from
configuration methods for "To" and "From" email headers, which means it will reflect any changes toemail_to
andemail_from
in Rodauth configuration. -
Missing foreign key constraint has been added to the generated Active Record migration for
email_auth
feature. -
JSON request body is now correctly parsed on web servers with non-rewindable rack input (e.g. Falcon).
-
The generated
webauthn_remove
Tailwind template now renders the validation error correctly.