Manual:$wgInvalidUsernameCharacters

From mediawiki.org
This page is a translated version of the page Manual:$wgInvalidUsernameCharacters and the translation is 65% complete.
利用者アカウント、認証: $wgInvalidUsernameCharacters
新規アカウント作成の際に阻止する文字。
導入されたバージョン:1.15.0 (r48765)
除去されたバージョン:使用中
許容される値:(文字列)
既定値:'@:>=' (1.40+, git #78b03385)

'@:>' (1.39+, git #9d458f6d)
'@:' (1.26-1.38, git #9aa5cd1b)

'@' (1.15-1.25)

詳細

新規アカウント作成の際に阻止する文字です。 This does not affect any existing user accounts.

別のウィキにアカウントを持つ利用者 (インターウィキ利用者) に対して MediaWiki が内部的に使用するため、既定では「@」記号の使用は禁止されています。 The : sign is prohibited because the validity of usernames in different wikis differs due to different namespace and interwiki configuration. 利用者名に「@」の使用を許可する場合は、$wgUserrightsInterwikiDelimiter の値も設定してください。 値を設定しないと、利用者名に「@」を含む利用者に通常の方法では異なる権限を付与できなくなります (利用者 ID 経由では権限を設定できますが)。 However, you are free to allow the ":" in usernames as long as you don't run multiple wikis with shared database or Extension:CentralAuth , and you don't create new namespace or interwiki prefixes which make existing username invalid.

これは、アカウント作成の際に正規表現文字クラスで使用されます (「/」など、正規表現のメタ文字はエスケープされます)。

Apart from checking for the signs given in $wgInvalidUsernameCharacters, MediaWiki also checks other conditions, which can prevent a username from being allowed. For example IP addresses cannot be used as usernames and combinations of characters, which are not allowed in page names cannot be used either. More information is at m:Help:Page name.

The matchPattern and genPattern regular expressions in $wgAutoCreateTempUser will further restrict available usernames.

いくつかの文字を含む利用者名を阻止したい場合は、以下の設定を使用します:

$wgInvalidUsernameCharacters = '@:>=#€';
Make sure that you always include the characters MediaWiki recommends to include by default.

関連項目