emails: update email templates.
* Add header with the Danbooru name and logo. * Add footer with links to the site, the privacy policy, and the contact page. * Add "You received this email because of X" messages to remind users why they received the email. * Add basic CSS to make the design match the site.
This commit is contained in:
@@ -1,19 +1,15 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<body>
|
||||
<p>
|
||||
You recently requested your <%= Danbooru.config.app_name %> password to be reset.
|
||||
Click the link below to login to <%= Danbooru.config.app_name %> and reset your password.
|
||||
</p>
|
||||
<h2>Hi <%= link_to_user @user %>,</h2>
|
||||
|
||||
<p>
|
||||
<%= link_to "Reset password", edit_user_password_url(@user, signed_user_id: Danbooru::MessageVerifier.new(:login).generate(@user.id, expires_in: 30.minutes)) %>
|
||||
</p>
|
||||
<p>
|
||||
You requested your <%= link_to Danbooru.config.canonical_app_name, root_url %> password to be reset.
|
||||
Click the link below to reset your password:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If you did not request for your <%= Danbooru.config.app_name %> password to
|
||||
be reset, please ignore this email or reply to let us know. This link
|
||||
will only be valid for the next 30 minutes.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
<p style="margin-left: 2em">
|
||||
<%= link_to "Reset password", edit_user_password_url(@user, signed_user_id: Danbooru::MessageVerifier.new(:login).generate(@user.id, expires_in: 30.minutes)) %>
|
||||
</p>
|
||||
|
||||
<p class="fineprint">
|
||||
You received this email because someone requested a password reset for your account on <%= link_to Danbooru.config.canonical_app_name, root_url %>.<br>
|
||||
If this wasn't you, you may ignore this email. This link will expire in 30 minutes.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user