[openstreetmap/openstreetmap-website] Add some javascript to check dynamically if the username is already taken (PR #4402)
Holger Jeromin
notifications at github.com
Wed Dec 13 07:25:53 UTC 2023
> How is it actually checking? I can't actually see it constructing any sort of URL in that code?
The code is running on the URL `https://www.openstreetmap.org/user/new` so fetching
`fetch("./" + chosenUsername)` will result in checking `https://www.openstreetmap.org/user/<username>` which results in http 200 or 404
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4402#issuecomment-1853392301
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4402/c1853392301 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231212/fbb1c2a7/attachment.htm>
More information about the rails-dev
mailing list