Kat_F
(Kat F)
8월 10, 2019, 2:33오전
1
On our main site there are often people who use underscores and dashes in usernames. When they are ported to our Discourse forum, one or more of those characters is often dropped from the username, resulting in a mismatch.
The forum is provided for the site users only and being able to correlate between the usernames is important.
Examples:
kayakaya_ becomes kayakaya
__aena13 becomes _aena13
At present we haven’t figured out how to either automatically delete or disable forum accounts when the mains are closed or at least generate a report. Is that possible?
The usernames are being auto-edited to reflect the Discourse rules for usernames.
Kat_F
(Kat F)
8월 10, 2019, 2:41오전
3
That’s pretty much what I figured. Thankfully we have found a place that keeps the actual username intact.
Falco
(Falco)
8월 10, 2019, 2:44오전
4
We recently added two site settings which allow you to permit more characters in the username
Lifting the restrictions on allowed characters in usernames is one of the oldest feature requests. Starting with Discourse 2.3.0.beta9 it’s finally possible to use Unicode characters within usernames and group names.
[image]
New Site Settings
There are two new site settings: allowed unicode username characters and unicode usernames.
allowed unicode username characters allows you to allow only certain Unicode characters (e.g. [äöüßÄÖÜẞ] or \p{Greek}). By default Discourse permits letters (Ll …
Did you try tweaking those?
Kat_F
(Kat F)
8월 10, 2019, 2:46오전
5
We’ll take a look at that and see if it helps. Thank you.
SSO에서도 사용자 이름이 변환되는 문제를 겪고 있습니다.
여기 에서 이 문제를 언급한 적이 있지만, 이 토픽이 더 최신이라 누군가 살펴봐 주시면 좋겠습니다.
사용자 이름/그룹에 대한 유니코드 지원이 도입되면서 中国과 같은 사용자 이름(정말 멋진 기능입니다!)을 사용할 수 있게 되었지만, Discourse는 사용자 이름의 첫 글자나 마지막 글자로 대시를 사용하는 것을 허용하지 않습니다(하지만 밑줄은 허용됩니다).
첫 번째 또는 마지막 위치에서 대시를 방지하는 데 특별한 이유가 있나요? 명백한 단점이 없다면 이 정책을 수정할 가능성이 있을까요? /cc @Falco
Kat_F
(Kat F)
2월 3, 2020, 4:54오후
7
사용자가 원하는 닉네임이 이미 사용 중일 때 특수 문자를 넣으면 상황이 복잡해집니다.
Falco
(Falco)
2월 3, 2020, 4:54오후
8
커스텀 플러그인에서 해당 규칙을 오버라이드하여 몇 주간 사용해 볼 수 있습니다. 일반적인 Discourse 사용 환경에서 문제가 없다면 풀 리퀘스트를 보내주세요.
이 기능을 구현해 보고 있는데, 사용자 이름 앞뒤의 대시(-)는 멘션 포함해서 정상적으로 작동합니다.
하지만 사용자 이름의 앞뒤에 언더스코어(_)를 사용하는 경우엔 문제가 생겼습니다. 메시지 작성기에서 마크다운 파서가 @멘션보다 우선순위가 높아, 사용자 이름이 링크 대신 이탤릭체로 표시되거든요.
이 문제를 해결하려면 어디서부터 살펴봐야 할지 막막합니다. @Falco님 , 혹시 조언 주실 수 있을까요?