diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-03-31 21:42:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 21:42:28 +0200 |
commit | 280fa3b2c01b9d6c5cfb2ed608087038b6c1a0ae (patch) | |
tree | 0e5f65785914edeb466f409763beb0af2bff6317 /app/controllers | |
parent | c6c03b49b255c4fe2183b94288a712ad7a66e2c2 (diff) |
Fix invalid/expired invites being processed on sign-up (#24337)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/auth/registrations_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index c5418ba0c..b55f7f309 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -46,7 +46,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 |