Browse Source

feat: update controller

pull/1265/head
natdeanlewissoftwire 3 years ago
parent
commit
15415ff1c5
  1. 2
      app/controllers/auth/confirmations_controller.rb

2
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

Loading…
Cancel
Save