-
Notifications
You must be signed in to change notification settings - Fork 20
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 #151 from TelosLabs/password-reset-email
Reset Password Email Design
- Loading branch information
Showing
4 changed files
with
57 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class PasswordMailer < ApplicationMailer | ||
def password_reset | ||
mail to: params[:user].email | ||
mail(to: params[:user].email, subject: I18n.t("mailers.password_mailer.password_reset.subject")) | ||
end | ||
end |
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 +1,27 @@ | ||
<%= link_to "Reset your password", edit_password_reset_url(token: params[:token]) %> | ||
<div class="u-w-full"> | ||
<div class="container"> | ||
<h1 class="title"> | ||
Reset your password | ||
</h1> | ||
|
||
<p class="c-paragraph"> | ||
Hello, | ||
<br><br> | ||
we're sending you this email because you requested a password reset. | ||
<br><br> | ||
Click on the button to create a new password: | ||
<br><br> | ||
|
||
<%= link_to "Create new password", edit_password_reset_url(token: params[:token]), class: "c-button" %> | ||
<br> | ||
|
||
If you didn't request a password reset, you can ignore this email. | ||
</p> | ||
</div> | ||
|
||
<div class="c-footer"> | ||
<span class="u-text-center"> | ||
<%= image_tag url_for("main_logo.png"), class: "c-footer-img" %> | ||
</span> | ||
</div> | ||
</div> |
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