You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classRodauthApp < Rodauth::Rails::App# primary configurationconfigureRodauthMain# secondary configurationconfigureRodauthAdmin,:adminroutedo |r|
rodauth.load_memory# autologin remembered usersr.rodauth# route rodauth requests# ==> Authenticating requests# Call `rodauth.require_account` for requests that you want to# require authentication for. For example:## # authenticate /dashboard/* and /account/* requests# if r.path.start_with?("/dashboard") || r.path.start_with?("/account")# rodauth.require_account# end# ==> Secondary configurationsr.rodauth(:admin)# route admin rodauth requestsifrequest.path.start_with?("/admin")rodauth(:admin).require_accountend# require MFA if the user is logged in and has MFA setupifrodauth(:admin).uses_two_factor_authentication?rodauth(:admin).require_two_factor_authenticatedendendend
Hi and thanks for creating this library.
I am developing an app with both a
main
account type, and anadmin
one. I've succesfully followed these instructions to create both account types.After finalising all the website features, I decided to reset the database with
rake db:reset
to see how the app would behave on a fresh install.After creating a new

admin
account, I'm running into this error:My

rodauth_admin.rb
configuration looks like this:Did I miss a step somewhere?
The text was updated successfully, but these errors were encountered: