UX: show generic message when reloading 'activation email resent' page

UX: show generic message when reloading ‘activation email resent’ page

diff --git a/app/assets/javascripts/discourse/templates/account-created/resent.hbs b/app/assets/javascripts/discourse/templates/account-created/resent.hbs
index 70971b6..8647596 100644
--- a/app/assets/javascripts/discourse/templates/account-created/resent.hbs
+++ b/app/assets/javascripts/discourse/templates/account-created/resent.hbs
@@ -1,3 +1,7 @@
 <div class='ac-message'>
-  {{{i18n 'login.sent_activation_email_again' currentEmail=email}}}
+  {{#if email}}
+    {{{i18n 'login.sent_activation_email_again' currentEmail=email}}}
+  {{else}}
+    {{i18n 'login.sent_activation_email_again_generic'}}
+  {{/if}}
 </div>
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 4a2e0e0..d0b7c06 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1243,6 +1243,7 @@ en:
       submit_new_email: "Update Email Address"
 
       sent_activation_email_again: "We sent another activation email to you at <b>{{currentEmail}}</b>. It might take a few minutes for it to arrive; be sure to check your spam folder."
+      sent_activation_email_again_generic: "We sent another activation email. It might take a few minutes for it to arrive; be sure to check your spam folder."
       to_continue: "Please Log In"
       preferences: "You need to be logged in to change your user preferences."
       forgot: "I don't recall my account details"

GitHub
sha: 1381dc60

This commit has been mentioned on Discourse Meta. There might be relevant details there: