Commit 687cf48e60ede21c75dd53ca39b8560031469015
1 parent
84f96137
Exists in
master
and in
4 other branches
Improve email with confirmation instructions
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
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 | <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @resource.confirmation_token) %></p> | 9 | <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @resource.confirmation_token) %></p> |