Skip to content

Commit

Permalink
Add "Resend Verification" button to email verification page in case o…
Browse files Browse the repository at this point in the history
…f errors
  • Loading branch information
karenc committed Dec 2, 2015
1 parent 9f565c6 commit d4f5681
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/contact_infos/confirm.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<%= page_heading "Email Verification" %>
<% if @handler_result.errors.any? %>
<p>Sorry, we couldn't verify an email using the verification code you provided. If you typed it in manually, please check for errors. If you're still having trouble, you might try to send the verification email again.</p>

<p><%= button_to 'Resend Verification',
resend_confirmation_contact_info_path(current_user.email_addresses.first),
method: :put,
class: 'standard' %></p>
<% else %>
<p>Success! Thanks for adding your email address.</p>
<% end %>

0 comments on commit d4f5681

Please sign in to comment.