<p></p>
<p dir="auto">I think this has something to do that these two alternatives do not produce the same results:</p>
<pre class="notranslate"><code class="notranslate">self.current_user = User.new(user_params)
user1 = current_user # user1.pass_crypt_confirmation is preserved
self.current_user = User.new(user_params)
user2 = User.new(current_user.slice(...,"pass_crypt_confirmation")) # user2.pass_crypt_confirmation == nil, even though hash contains the key
</code></pre>
<p dir="auto">I updated <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2064057773" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4455" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4455/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4455">#4455</a> with fix for this issue.</p>
<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/issues/4474#issuecomment-1889677006">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL6U7Q4TIKBZMOGOC3YOFV6FAVCNFSM6AAAAABBYA4LM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGY3TOMBQGY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJRVX5KS3BVCUMBW6LYOFV6FA5CNFSM6AAAAABBYA4LM2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTQUIXM4.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/issues/4474/1889677006</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/issues/4474#issuecomment-1889677006",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4474#issuecomment-1889677006",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>