diff --git a/Changelog.md b/Changelog.md index 3bc8ad976b2..3ee7565b85a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ * Only require AWS-module for fog [#7201](https://github.com/diaspora/diaspora/pull/7201) * Only show community spotlight links on the contacts page if community spotlight is enabled [#7213](https://github.com/diaspora/diaspora/pull/7213) * Require spec\_helper in .rspec [#7223](https://github.com/diaspora/diaspora/pull/7223) +* Make the CSRF mail a bit more friendly [#7238](https://github.com/diaspora/diaspora/pull/7238) ## Bug fixes * Fix fetching comments after fetching likes [#7167](https://github.com/diaspora/diaspora/pull/7167) diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index a38f161ab2a..77f00f47fe4 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -721,7 +721,7 @@ en: Don’t worry; you can safely sign in again now. - If you see this message regularly, please check your browsing settings. + If you see this message repeatedly, please check the points above, including any browser add-ons. Thank you, The diaspora* email robot! diff --git a/spec/mailers/notifier_spec.rb b/spec/mailers/notifier_spec.rb index 7593bba03b6..a23b796b8ca 100644 --- a/spec/mailers/notifier_spec.rb +++ b/spec/mailers/notifier_spec.rb @@ -476,7 +476,9 @@ end it "has some informative text in the body" do - expect(email.body.encoded).to include("https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)") + email.body.parts.each do |part| + expect(part.decoded).to include("https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)") + end end end