Merge pull request #1794 from basecamp/flavorjones/warn-expiration

Add an expiration note to emails and the magic link page.
This commit is contained in:
Mike Dalessio
2025-12-02 10:41:48 -05:00
committed by GitHub
3 changed files with 6 additions and 0 deletions
@@ -9,6 +9,8 @@
<strong class="txt-large"><%= @magic_link.code %></strong>
<p>This code will work for <%= distance_of_time_in_words(MagicLink::EXPIRATION_TIME) %>.</p>
<p class="footer">Need help? <%= mail_to "support@fizzy.do", "Send us an email"%>.
</p>
@@ -5,3 +5,5 @@ Please enter this 6-character verification code on the Fizzy sign-up page to cre
<% end %>
<%= @magic_link.code %>
This code will work for <%= distance_of_time_in_words(MagicLink::EXPIRATION_TIME) %>.
@@ -12,6 +12,8 @@
autocomplete: "one-time-code", maxlength: "6", placeholder: "••••••", value: params[:code],
data: { magic_link_target: "input", action: "keydown.enter->magic-link#submit paste->magic-link#paste" } %>
<% end %>
<p class="txt-small">The code you receive will work for <%= distance_of_time_in_words(MagicLink::EXPIRATION_TIME) %>.</p>
</div>
<% if Rails.env.development? %>