Remove case sensitivity for add to group API call

One can PUT to https:// host/groups/GROUP_ID/members.json with usernames set to a username. The username is case-sensitive, though.

I’m working with a client who is using Zoho webhooks to have people purchase something that adds them to a Discourse group. I’m having them manually enter their username (which I hate to do, but I don’t see a clean non-plugin way around it). It works like a charm unless they enter their username “MyCoolName” as “mycoolname”.

If this isn’t likely to get changed in core in the short term, can I fix this easily in a plugin? I don’t see that put in config/route.rb. What would I need to override?

3 Likes

I’ll work on this. I was just working near here.

7 Likes

Thanks Blake, I can certainly benefit from this, and I believe others also.

3 Likes

Done.

https://github.com/discourse/discourse/commit/93485facaf5672f7472b2d0dd605d36617ad93be

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.