diff --git a/app/controllers/users/confirmations_controller.rb b/app/controllers/users/confirmations_controller.rb new file mode 100644 index 00000000..671be123 --- /dev/null +++ b/app/controllers/users/confirmations_controller.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true +module Users + class ConfirmationsController < Devise::ConfirmationsController + private + def after_confirmation_path_for(resource_name, resource) + sign_in_path + end + end +end diff --git a/app/views/users/confirmations/new.html.erb b/app/views/users/confirmations/new.html.erb index 9c27eb72..5652d2fd 100644 --- a/app/views/users/confirmations/new.html.erb +++ b/app/views/users/confirmations/new.html.erb @@ -8,5 +8,3 @@
<%= f.submit "Resend confirmation instructions" %>
<% end %> - -<%= render "devise/shared/links" %> diff --git a/config/routes.rb b/config/routes.rb index 8b166bcf..d63240ef 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -97,6 +97,7 @@ Metamaps::Application.routes.draw do resources :tokens, only: [:new] devise_for :users, skip: :sessions, controllers: { + confirmations: 'users/confirmations', registrations: 'users/registrations', passwords: 'users/passwords', sessions: 'users/sessions'