[openstreetmap/openstreetmap-website] Remove whitespace on signup fields #4471 (PR #4501)

Tom Hughes notifications at github.com
Wed Jan 31 15:14:40 UTC 2024


I don't think a gem that auto strips the model attributes is going to help here because the login code is not actually building a model at all - if it was the model would fail validation because we already have validations for this.

The problem basically is https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/sessions_controller.rb#L50 which creates (or rather looks up) the model using the provided username and password.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4501#issuecomment-1919307654
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4501/c1919307654 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240131/90d12216/attachment.htm>


More information about the rails-dev mailing list