Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Jul 24, 2024
1 parent 4f4bc90 commit 76faacb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/rails_app/app/misc/rodauth_main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ class RodauthMain < Rodauth::Rails::Auth
after_login { remember_login }
before_create_account { rails_account.username }

already_logged_in { redirect rails_routes.root_path(rails_request.query_parameters) }
already_logged_in do
if rails_request.query_parameters.any?
redirect rails_routes.root_path(rails_request.query_parameters)
end
end

logout_redirect { rails_routes.root_path }
verify_account_redirect { login_redirect }
reset_password_redirect { login_path }
Expand Down

0 comments on commit 76faacb

Please sign in to comment.