From 2205dc7dd55efc3843a2bf10bc7f6365d5f4a14e Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 6 Nov 2025 16:14:46 -0500 Subject: [PATCH] Print the magic link code from the join screen in dev Related to d6db4c93 --- app/controllers/join_codes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/join_codes_controller.rb b/app/controllers/join_codes_controller.rb index f9980a8db..6a13bef2f 100644 --- a/app/controllers/join_codes_controller.rb +++ b/app/controllers/join_codes_controller.rb @@ -14,7 +14,8 @@ class JoinCodesController < ApplicationController identity.memberships.find_or_create_by!(tenant: tenant) do |membership| membership.join_code = code end - identity.send_magic_link + magic_link = identity.send_magic_link + flash[:magic_link_code] = magic_link&.code if Rails.env.development? end session[:return_to_after_authenticating] = landing_url(script_name: "/#{tenant}")