email confirmation

This commit is contained in:
Kyle Drake 2014-08-12 14:07:39 -07:00
parent 63d9348012
commit 4fe339f51f
4 changed files with 56 additions and 13 deletions

View file

@ -56,6 +56,19 @@
<input class="btn-Action" type="submit" value="Change Password">
</form>
<h2>Change Email</h2>
<form method="POST" action="/change_email">
<%== csrf_token_input_html %>
<p>Current Email: <strong><%= current_site.email %></strong></p>
<p>New Email:</p>
<input class="input-Area" name="email" type="text">
<div>
<input class="btn-Action" type="submit" value="Change Email">
</div>
</form>
<h2>Change Site (User) Name</h2>

View file

@ -1,10 +1,10 @@
Hello <%= @site.username %>,
Hello <%= site.username %>,
Please confirm your email address for Neocities!
You can confirm your email address using the link below:
https://neocities.org/site/<%= @site.username %>/confirm_email/<%= @site.email_confirmation_token %>
https://neocities.org/site/<%= site.username %>/confirm_email/<%= site.email_confirmation_token %>
Thank you!