Hi Discourse!
I recently started a site and I’ve encountered the issue described below.
Issue
- Username ‘賢治’ always automatically changes to ‘賢治1’ whenever I send my single sign on payload.
Strangely, the name is ok with being ‘賢治’, just not the username. This makes me think it’s some sort of uniqueness issue with the username… but I checked the rails console and there is no user with the username ‘賢治’. Is there some other place I should check for the uniqueness constraint? Is it a special chars issue?
Context
I only recently started my discourse site and I originally started it without the ‘unicode usernames’ checked. However, after updating the settings I went through and updated the affected users. The other user with special chars in their name did not get a number appended to their username.
Unicode Settings
- ‘unicode usernames’ → allowed
- ’ allowed unicode username characters’ → [\p{Han}\p{Katakana}\p{Hiragana}]
Payload
name=%E8%B3%A2%E6%B2%BB
username=%E8%B3%A2%E6%B2%BB
Any help would be greatly appreciated. Thanks!