[openstreetmap/openstreetmap-website] Password field is not compared to repeat password field in Signup form (Issue #4474)
Milan Cvetkovic
notifications at github.com
Fri Jan 12 17:18:26 UTC 2024
I think this has something to do that these two alternatives do not produce the same results:
```
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
```
I updated #4455 with fix for this issue.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4474#issuecomment-1889677006
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4474/1889677006 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240112/03129423/attachment-0001.htm>
More information about the rails-dev
mailing list