Manual:$wgInvalidUsernameCharacters

From mediawiki.org
This page is a translated version of the page Manual:$wgInvalidUsernameCharacters and the translation is 45% complete.
Outdated translations are marked like this.
User accounts, authentication: $wgInvalidUsernameCharacters
Caracteres a evitar que durante a criação de novas contas.
Introduzido na versão:1.15.0 (r48765)
Removido na versão:ainda em uso
Valores permitidos:(String)
Valor padrão:'@:>=' (1.40+, git #78b03385)

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

'@' (1.15-1.25)

Detalhes

Caracteres a evitar que durante a criação de novas contas. This does not affect any existing user accounts.

O símbolo @ é proibido por padrão, porque o MediaWiki o utiliza internamente para os usuários que têm a sua conta em outra wiki (usuários InterWiki). The : sign is prohibited because the validity of usernames in different wikis differs due to different namespace and interwiki configuration. Se você permitir "@" no nome de usuário, você também deve definir $wgUserrightsInterwikiDelimiter . Caso contrário, você não será capaz de fornecer aos usuários um "@" nas diferentes permissões de nome de usuário. However, you are free to allow the ":" in usernames as long as you don't run multiple wikis with shared database or Extensão:CentralAuth , and you don't create new namespace or interwiki prefixes which make existing username invalid.

Isto é usado em uma classe de caracteres de expressão regular durante o registro (metacaracteres regex como / são destacados).

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.

Exemplo

No caso, os nomes de usuário contendo @, # e € devem ser evitados, a seguinte configuração é usada:

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

Ver também

  • $CapitalLinks e $CapitalLinksOverrides não se aplicam a nomes de usuário