<p dir="auto">This implements what is known as "paranoid" password reset flash messages (<a href="https://github.com/heartcombo/devise/blob/bb18f4d3805be0bf5f45e21be39625c7cfd9c1d6/config/locales/en.yml#L36">using the terminology from Devise</a>). It avoids revealing whether the supplied email address is already registered.</p>
<p dir="auto">Added an explicit test for this situation, so that the test for email non-existance is separate from the duplicate-case tests.</p>
<p dir="auto">(I originally planned to move the entire passwords_controller to use <code class="notranslate">Devise::Recoverable</code>, but that was more challenging than I first thought.)</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4555'>https://github.com/openstreetmap/openstreetmap-website/pull/4555</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4555/commits/4e237db3902fd9cd9d2f55131c8bba2e830e87fd" class="commit-link">4e237db</a>  Be paranoid when sending password reset emails</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4555/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4555/files#diff-e731908a3da0376adc4c661e2db98a148ef9be83a310f7abc2e157a481ca6132">app/controllers/passwords_controller.rb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4555/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4555/files#diff-b18721527d46de9b2eb33e182fbe7c7e0fb965c010817b030c047b92c0445c20">test/controllers/passwords_controller_test.rb</a>
    (26)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4555.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4555.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4555.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4555.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4555">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJNPNF3MIAMNAGEKE3YWHZFZAVCNFSM6AAAAABEDGCIV2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DIOBWG44DINI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIQTYPRVE7O2JH5USTYWHZFZA5CNFSM6AAAAABEDGCIV2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHICCKDAU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4555</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4555",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4555",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>