about summary refs log tree commit diff
path: root/app/controllers/auth/registrations_controller.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-04-01 14:31:05 +0200
committerClaire <claire.github-309c@sitedethib.com>2023-04-01 14:31:05 +0200
commit7b15f4006adb5f8f04d83174532c30eeb78757b0 (patch)
tree686c30ed5f6c4cfe5f6b4d84e46ff19f7baa6949 /app/controllers/auth/registrations_controller.rb
parentd874a7a10f7cab9b3fe2eb3a088b7c0dff95c7ee (diff)
parent46483ae849bc06ee74f4745f4564b213e742c51c (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers/auth/registrations_controller.rb')
-rw-r--r--app/controllers/auth/registrations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb
index 83e784e4c..d2f1bea93 100644
--- a/app/controllers/auth/registrations_controller.rb
+++ b/app/controllers/auth/registrations_controller.rb
@@ -47,7 +47,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
     super(hash)
 
     resource.locale                 = I18n.locale
-    resource.invite_code            = params[:invite_code] if resource.invite_code.blank?
+    resource.invite_code            = @invite&.code if resource.invite_code.blank?
     resource.registration_form_time = session[:registration_form_time]
     resource.sign_up_ip             = request.remote_ip