<p dir="auto">This PR refactors the passwords controller to use resourceful routing. It thereby aligns the methods with those used by Devise, to smooth future migration.</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/4392'>https://github.com/openstreetmap/openstreetmap-website/pull/4392</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/commits/1d0f588d6236acaed034e77855a8bd646ba3fd0e" class="commit-link">1d0f588</a> Use path and url helpers for password links</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/commits/4bca24a7beb4a78cecfeaa775d41662497f9930f" class="commit-link">4bca24a</a> Resourceful routing for passwords</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files">9 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-debf59904131dc89a88ab44cbb1d6deaaa5a7d70c0507f674080df62f7c8e41f">app/abilities/ability.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-e731908a3da0376adc4c661e2db98a148ef9be83a310f7abc2e157a481ca6132">app/controllers/passwords_controller.rb</a>
(54)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-55254045ba774e4c360d7bbfde054665072d2ab49abc3f21add15a37bba65a1c">app/mailers/user_mailer.rb</a>
(3)
</li>
<li>
<strong>R</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-00c135f12e9f81a13b2d52461312ed9eb613b96a967f846bf07da89555ceb301">app/views/passwords/edit.html.erb</a>
(2)
</li>
<li>
<strong>R</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-53b330330a38ee23446907b7ade424f8a86652c530f7016ee94f3df7eb86e67b">app/views/passwords/new.html.erb</a>
(0)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-5654cfc158c888a40321c1e90f9ea3a0208ae80616b15ff0fa5e939b8f795e87">app/views/sessions/new.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(7)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4392/files#diff-b18721527d46de9b2eb33e182fbe7c7e0fb965c010817b030c047b92c0445c20">test/controllers/passwords_controller_test.rb</a>
(20)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4392.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4392.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4392.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4392.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/4392">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLRAD4EBIVXUVXHNB3YIDD4DAVCNFSM6AAAAABAJ5MYL6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDSMRXGM4TENQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL3FXULVLRKHNGPDSTYIDD4DA5CNFSM6AAAAABAJ5MYL6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHR5CDIY.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/4392</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/4392",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4392",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>