Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from chitsaou/fix-password
修正修改密碼、重設密碼的功能
- Loading branch information
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |