forked from tip4commit/tip4commit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
%h4 Hello #{@user.full_name}, | ||
|
||
%p We recently discovered a security issue on Peer4commit. This issue allowed someone to change the Peercoin address of other users. | ||
|
||
%p | ||
The problem is now fixed. To ensure our database is clean we decided to clear all the addresses. | ||
Please set your Peercoin address again: | ||
= link_to('Sign in', login_users_url(token: @user.login_token)) + "." | ||
|
||
%p We think only one tip was stolen. It will be sent again to its owner when he sets his address. | ||
|
||
%p Sorry for this inconvenience. | ||
|
||
%p= link_to "peer4commit.com", "http://peer4commit.com/" | ||
|
||
%p | ||
%small | ||
= link_to "Don't notify me anymore.", login_users_url(token: @user.login_token, unsubscribe: true) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
task :send_security_issue => :environment do | ||
User.where(unsubscribed: nil).each do |user| | ||
UserMailer.security_issue(user).deliver | ||
end | ||
end |