0
0
Fork 0

Fix invites (#19560)

Fixes #19507

Fix regression from #19296
This commit is contained in:
Claire 2022-10-30 19:04:39 +01:00 committed by GitHub
parent ac9fb0d654
commit a529d6d93e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -148,6 +148,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
return if @rules.empty? || (session[:accept_token].present? && params[:accept] == session[:accept_token])
@accept_token = session[:accept_token] = SecureRandom.hex
@invite_code = invite_code
set_locale { render :rules }
end