[openstreetmap/openstreetmap-website] Add some javascript to check dynamically if the username is already taken (PR #4402)

Pieter Vander Vennet notifications at github.com
Wed Dec 13 13:32:16 UTC 2023


Hi all,

I'm very happy to see a lot of constructive criticism here, so I updated the code.

1. I moved all the code to 'users.js'
2. Used some JQuery, which significantly shortens the code
3. I also added in a light check for special characters
4. Added comments about some of the questions that were raised here, so that those issues are clear for future readers of the code.

About the syntax: if this improves matters for 99% of the new signups, that is a good step in the right direction. If the script doesn't work (e.g. for people using scriptblockers), they can still sign up and the display name will still be validated by the server. For those, the situation will stay as it is.

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

Message ID: <openstreetmap/openstreetmap-website/pull/4402/c1853925151 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231213/5d0c7b95/attachment-0001.htm>


More information about the rails-dev mailing list