From 331f6477b8d682c65b8f51653a37687e49a8e46f Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sun, 9 Jan 2022 22:57:01 +0100 Subject: [PATCH] confirmation_instructions: add "do not reply" remark to the email body There have been several replies to this email containing nothing but the sentence `Yes, I confirm.` or just simply `Confirmed`. It seems like someone discovered that replying to the email with exactly that helped with recovering their Twitter account after it was locked, and now people try to do this everywhere else. --- app/views/devise/mailer/confirmation_instructions.haml | 2 ++ app/views/devise/mailer/confirmation_instructions.text.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/devise/mailer/confirmation_instructions.haml b/app/views/devise/mailer/confirmation_instructions.haml index 466209dc..f21c5974 100644 --- a/app/views/devise/mailer/confirmation_instructions.haml +++ b/app/views/devise/mailer/confirmation_instructions.haml @@ -8,3 +8,5 @@ %p{ style: 'margin:0px;padding:0px' } You can confirm your account email through the link below: %p{ style: 'margin:0px;padding:0px' } = link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http)) +%p   +%p{ style: 'margin:0px;padding:0px' } Please do not reply to this email. diff --git a/app/views/devise/mailer/confirmation_instructions.text.erb b/app/views/devise/mailer/confirmation_instructions.text.erb index 3f7e2181..58910cbd 100644 --- a/app/views/devise/mailer/confirmation_instructions.text.erb +++ b/app/views/devise/mailer/confirmation_instructions.text.erb @@ -4,3 +4,5 @@ You can confirm your account email by copying link below, and entering it into your browser. <%= confirmation_url(@resource, confirmation_token: @token, protocol: (APP_CONFIG['https'] ? :https : :http)) %> + +Please do not reply to this email.