Add registration redirection and mail confirmation sending

This commit is contained in:
cryptogopher 2023-04-15 23:52:02 +02:00
parent 30af21d580
commit 6d71d38680
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,7 @@
class RegistrationsController < Devise::RegistrationsController
protected
def after_inactive_sign_up_path_for(resource)
new_user_session_path
end
end

View File

@ -35,6 +35,8 @@ module FixinMe
# #
# URL to use in sent e-mails. # URL to use in sent e-mails.
config.action_mailer.default_url_options = {host: 'localhost'} config.action_mailer.default_url_options = {host: 'localhost'}
# https://guides.rubyonrails.org/configuring.html#config-action-mailer-delivery-method
config.action_mailer.delivery_method = :sendmail
# List of hosts this app is available at. # List of hosts this app is available at.
# https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization # https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization

View File

@ -1,5 +1,6 @@
Rails.application.routes.draw do Rails.application.routes.draw do
devise_for :users, path: '', path_names: {registration: 'register'} devise_for :users, path: '', path_names: {registration: 'register'},
controllers: {registrations: :registrations}
resources :users resources :users