Manual:$wgInvalidUsernameCharacters
利用者アカウント、認証: $wgInvalidUsernameCharacters | |
---|---|
新規アカウント作成の際に阻止する文字。 |
|
導入されたバージョン: | 1.15.0 (r48765) |
除去されたバージョン: | 使用中 |
許容される値: | (文字列) |
既定値: | '@:>=' (1.40+, git #78b03385)
'@' (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.
これは、アカウント作成の際に正規表現文字クラスで使用されます (「/」など、正規表現のメタ文字はエスケープされます)。
$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. 詳細情報: Manual:Page namingThe matchPattern
and genPattern
regular expressions in $wgAutoCreateTempUser
will further restrict available usernames.
例
いくつかの文字を含む利用者名を阻止したい場合は、以下の設定を使用します:
$wgInvalidUsernameCharacters = '@:>=#€';