about summary refs log tree commit diff
path: root/app/controllers/auth
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-10-30 19:35:59 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-10-30 19:35:59 +0100
commit5fd758fad18830e9e4b7baeccd87977397cf824a (patch)
tree059d44dd865528c2721eef9cf7ef990d23f2f1a3 /app/controllers/auth
parent8048874a3a62abab052d769b7fcae1c2c947e398 (diff)
parenta529d6d93e777003019f1ab0d7ff913134625cf6 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers/auth')
-rw-r--r--app/controllers/auth/registrations_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb
index f31677f64..edef0d5bb 100644
--- a/app/controllers/auth/registrations_controller.rb
+++ b/app/controllers/auth/registrations_controller.rb
@@ -153,6 +153,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