make confirmations work
This commit is contained in:
parent
4f6c93e86e
commit
7224d02c20
3 changed files with 10 additions and 2 deletions
9
app/controllers/users/confirmations_controller.rb
Normal file
9
app/controllers/users/confirmations_controller.rb
Normal file
|
@ -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
|
|
@ -8,5 +8,3 @@
|
||||||
|
|
||||||
<div><%= f.submit "Resend confirmation instructions" %></div>
|
<div><%= f.submit "Resend confirmation instructions" %></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
||||||
|
|
|
@ -97,6 +97,7 @@ Metamaps::Application.routes.draw do
|
||||||
resources :tokens, only: [:new]
|
resources :tokens, only: [:new]
|
||||||
|
|
||||||
devise_for :users, skip: :sessions, controllers: {
|
devise_for :users, skip: :sessions, controllers: {
|
||||||
|
confirmations: 'users/confirmations',
|
||||||
registrations: 'users/registrations',
|
registrations: 'users/registrations',
|
||||||
passwords: 'users/passwords',
|
passwords: 'users/passwords',
|
||||||
sessions: 'users/sessions'
|
sessions: 'users/sessions'
|
||||||
|
|
Loading…
Reference in a new issue