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
|
@ -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