Kat_F
(Kat F)
2019 年 8 月 10 日午前 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)
2019 年 8 月 10 日午前 2:41
3
That’s pretty much what I figured. Thankfully we have found a place that keeps the actual username intact.
Falco
(Falco)
2019 年 8 月 10 日午前 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)
2019 年 8 月 10 日午前 2:46
5
We’ll take a look at that and see if it helps. Thank you.
SSO でも同様に、ユーザー名が変換されている現象を確認しています。
これについては こちら で触れましたが、このトピックはより最近のものなので、どなたかご確認いただけないでしょうか。
ユーザー名やグループ名の Unicode サポートが導入されたことで、中国 のようなユーザー名(これは素晴らしい!)が可能になりましたが、Discourse はダッシュで始まる、あるいは終わるユーザー名を許可していません(アンダースコアなどは問題ありません)。
先頭または末尾にダッシュを禁止する理由はあるのでしょうか?もし明らかな欠点がないのであれば、このポリシーを見直す余地はありますか?/cc @Falco
Kat_F
(Kat F)
2020 年 2 月 3 日午後 4:54
7
ユーザーが特別な文字を入力すると、希望するユーザー名が既に使われているため、問題が起きやすくなります。
Falco
(Falco)
2020 年 2 月 3 日午後 4:54
8
カスタムプラグインでそれらのルールを上書きし、数週間様子を見ることもできます。通常の Discourse 利用で問題がなければ、プルリクエストを送ってください。
これに挑戦して、ユーザー名の先頭や末尾のダッシュ(前後のハイフン)が、メンションを含む場合でも正しく機能するようにできました。
しかし、ユーザー名の前後にアンダースコアがある場合は運が悪く、メッセージ作成画面ではマークダウンパーサーが@メンションよりも優先されてしまうようです。その結果、ユーザー名がリンクではなくイタリック体で表示されてしまいます。
この点について、どこを確認すればよいかわからず、現在行き詰まっています。何かアドバイスはありますか、@Falco さん?