Skip to content

Commit

Permalink
Merge pull request #100 from chitsaou/fix-password
Browse files Browse the repository at this point in the history
修正修改密碼、重設密碼的功能
  • Loading branch information
xdite committed Feb 23, 2012
2 parents c54cb88 + 4be0e52 commit a9fe9cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/views/account/edit.html.erb
Expand Up @@ -93,7 +93,6 @@
<% if params[:by] == "pwd" %>
<%= render "shared/error_messages", :target => resource %>
<% end %>
<input type="hidden" name="user[:by]" value="pwd" />
<div class="clearfix">
<%= f.label :current_password %>
<div class="input">
Expand Down
8 changes: 6 additions & 2 deletions app/views/devise/mailer/reset_password_instructions.html.erb
@@ -1,8 +1,12 @@
<p>Hello <%= @resource.email %>!</p>

<p>Someone has requested a link to change your password, and you can do this through the link below.</p>
<p>Someone has requested a link to reset your password, and you can do this through the link below.</p>

<p><%= link_to("Change my password", "#{Setting.domain}#{edit_password_path(@resource, :reset_password_token => @resource.reset_password_token)}") %></p>
<p><%= link_to("Reset my password", edit_password_url(@resource, :reset_password_token => @resource.reset_password_token)) %></p>

<p>If your mail reader prevents you from clicking the link, copy the URL below, paste it on the address bar, and hit Enter.</p>

<p><%= edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>

<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>

0 comments on commit a9fe9cf

Please sign in to comment.