From 15415ff1c50888e7b649597d80f08baac4bfc58e Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 2 Feb 2023 10:57:18 +0000 Subject: [PATCH] feat: update controller --- app/controllers/auth/confirmations_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/auth/confirmations_controller.rb b/app/controllers/auth/confirmations_controller.rb index c3be85f51..dc45531da 100644 --- a/app/controllers/auth/confirmations_controller.rb +++ b/app/controllers/auth/confirmations_controller.rb @@ -11,8 +11,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController else respond_with_navigational(resource) { redirect_to after_confirmation_path_for(resource_name, resource) } end - elsif resource.errors.map(&:type).include?(:confirmation_period_expired) - render "devise/confirmations/expired" elsif resource.errors.map(&:type).include?(:already_confirmed) redirect_to user_session_path else