Skip to content
Snippets Groups Projects
Commit 51572ac6 authored by Claire's avatar Claire
Browse files

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

parent 01617534
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,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