Confirmation Emails: Add way to resend (#287)

* Add way to resend confirmation email.

* Resend confirmation email if user sets it to the same as pending

* I10n: No pending email change
This commit is contained in:
Dylan Corrales
2025-11-04 17:11:26 -05:00
committed by GitHub
parent 6f1b651b80
commit 2064d7e374
5 changed files with 22 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
<% if @user.unconfirmed_email.present? %>
<p class="mt-2 text-sm text-gray-600">
You have requested to change your email to <%= @user.unconfirmed_email %>. Please go to your email and confirm for the change to take effect.
You have requested to change your email to <%= @user.unconfirmed_email %>. Please go to your email and confirm for the change to take effect. If you haven't received the email, please check your spam folder, or <%= link_to "request a new confirmation email", resend_confirmation_email_user_path(@user), class: "hover:underline text-secondary" %>.
</p>
<% end %>