From 7351e96353258df863c87b553b281ae90260f98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Mon, 25 Oct 2021 11:49:27 +0200 Subject: [PATCH] #8 --- app/controllers/users/registrations_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index f77babf2f..d0eb01033 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -26,6 +26,10 @@ class Users::RegistrationsController < Devise::RegistrationsController protected + def sign_up(resource_name, resource) + sign_in(resource, event: :authentication) + end + def update_resource(resource, params) resource.update(params) end -- GitLab