From 687cf48e60ede21c75dd53ca39b8560031469015 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 16 Dec 2013 21:10:18 +0200 Subject: [PATCH] Improve email with confirmation instructions --- app/views/devise/mailer/confirmation_instructions.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb index 7b4fd52..553d083 100644 --- a/app/views/devise/mailer/confirmation_instructions.html.erb +++ b/app/views/devise/mailer/confirmation_instructions.html.erb @@ -1,5 +1,9 @@ -

Welcome <%= @resource.email %>!

+

Welcome <%= @resource.name %>!

-

You can confirm your account through the link below:

+<% if @resource.unconfirmed_email.present? %> +

You can confirm your email (<%= @resource.unconfirmed_email %>) through the link below:

+<% else %> +

You can confirm your account through the link below:

+<% end %>

<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @resource.confirmation_token) %>

-- libgit2 0.21.2