Allow users to change their email address. Closes #546.
This commit is contained in:
parent
f8367c3ee1
commit
64ecd02f0b
7 changed files with 83 additions and 11 deletions
8
app/views/notifier/email_confirm.text.html.rhtml
Normal file
8
app/views/notifier/email_confirm.text.html.rhtml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<p>Hi,</p>
|
||||
|
||||
<p>Someone (hopefully you) would like to change their email address over at
|
||||
<%= SERVER_URL %> to <%= @address %>.</p>
|
||||
|
||||
<p>If this is you, please click the link below to confirm the change.</p>
|
||||
|
||||
<p><a href="<%= @url %>"><%= @url %></a></p>
|
8
app/views/notifier/email_confirm.text.plain.rhtml
Normal file
8
app/views/notifier/email_confirm.text.plain.rhtml
Normal file
|
@ -0,0 +1,8 @@
|
|||
Hi,
|
||||
|
||||
Someone (hopefully you) would like to change their email address over at
|
||||
<%= SERVER_URL %> to <%= @address %>.
|
||||
|
||||
If this is you, please click the link below to confirm the change.
|
||||
|
||||
<%= @url %>
|
|
@ -2,7 +2,7 @@
|
|||
<%= error_messages_for 'user' %>
|
||||
<% form_for :user, @user do |f| %>
|
||||
<table style="width : 100%">
|
||||
<tr><td>Email</td><td><%= @user.email %></td></tr>
|
||||
<tr><td>Email</td><td><%= f.text_field :email %></td></tr>
|
||||
<tr><td>Mapper since</td><td><%= @user.creation_time %> (<%= time_ago_in_words(@user.creation_time) %> ago)</td></tr>
|
||||
<tr><td>Display Name</td><td><%= f.text_field :display_name %></td></tr>
|
||||
<tr><td>Password</td><td><%= f.password_field :pass_crypt, {:value => '', :size => 50, :maxlength => 255} %></td></tr>
|
||||
|
|
8
app/views/user/confirm_email.rhtml
Normal file
8
app/views/user/confirm_email.rhtml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<h1>Confirm a change of email address</h1>
|
||||
|
||||
<p>Press the confirm button below to confirm your new email address.</p>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
|
||||
<input type="submit" name="confirm_action" value="Confrm">
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue