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:
@@ -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? %>
|
||||
|
||||
Reference in New Issue
Block a user