[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 15:01:37 UTC 2024
I found the problem:
[`after_initialize :encrypt_password`](https://github.com/openstreetmap/openstreetmap-website/blob/b32fc8e32ec601b8ec06f34c962f3f9cf78770f6/app/models/user.rb#L122) is invoked before the first time the form is validated in `users_controller.create`. This function modifies both password related fields, and effectively disables validations for them.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4474#issuecomment-1889444795
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4474/1889444795 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240112/a788bf03/attachment-0001.htm>
More information about the rails-dev
mailing list