Fix invalid/expired invites being processed on sign-up (#24337)

pull/25534/head
Claire 2023-03-31 21:42:28 +02:00
parent 3eb5b47768
commit 0f4c908b64
1 changed files with 1 additions and 1 deletions

View File

@ -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