From 9de9090f00ca7433d2685fafc47e23537c2963e8 Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Sun, 29 Sep 2024 13:55:48 -0700 Subject: [PATCH 1/2] Update account_controller.rb --- app/controllers/account_controller.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 975c84aeeb..e328f0c84e 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -66,11 +66,10 @@ def create UserStats.create({ user_id: @new_user.id }) end - @user = @new_user - redirect_back_or_default(account_welcome_path) + redirect_back_or_default("/") end - # This is the welcome page for new users who just created an account. + # This is the welcome page for new users who just verified an account. def welcome; end private ################################################# From eb1bf8e68b612bbc2d30f85e7e929e20a7d4fdf8 Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Sun, 29 Sep 2024 14:23:05 -0700 Subject: [PATCH 2/2] Update account_integration_test.rb --- test/integration/capybara/account_integration_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/capybara/account_integration_test.rb b/test/integration/capybara/account_integration_test.rb index aac6b88467..6bafa70306 100644 --- a/test/integration/capybara/account_integration_test.rb +++ b/test/integration/capybara/account_integration_test.rb @@ -182,7 +182,7 @@ def test_signup_verify_login_and_logout end # Redirected to the Welcome page, but email not verified. - assert_selector("body.account__welcome") + assert_selector("body.observations__index") # At this point there should be an unverified account for Dumbledore. wizard = User.find_by(email: "webmaster@hogwarts.org")