Commit 687cf48e60ede21c75dd53ca39b8560031469015

Authored by Dmitriy Zaporozhets
1 parent 84f96137

Improve email with confirmation instructions

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/devise/mailer/confirmation_instructions.html.erb
1   -<p>Welcome <%= @resource.email %>!</p>
  1 +<p>Welcome <%= @resource.name %>!</p>
2 2  
3   -<p>You can confirm your account through the link below:</p>
  3 +<% if @resource.unconfirmed_email.present? %>
  4 + <p>You can confirm your email (<%= @resource.unconfirmed_email %>) through the link below:</p>
  5 +<% else %>
  6 + <p>You can confirm your account through the link below:</p>
  7 +<% end %>
4 8  
5 9 <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @resource.confirmation_token) %></p>
... ...