Skip to content
Snippets Groups Projects
Unverified Commit 280fa3b2 authored by Claire's avatar Claire Committed by GitHub
Browse files

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

parent c6c03b49
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment