Manual:$wgInvalidUsernameCharacters

From MediaWiki.org
Jump to: navigation, search
Users: $wgInvalidUsernameCharacters
Characters to prevent during new account creations.
Introduced in version: 1.15.0 (r48765)
Removed in version: still in use
Allowed values: String
Default value: '@'

Other settings: Alphabetical | By Function


Details [edit]

Characters to prevent during new account creations.

This is used in a regular expression character class during registration (regex metacharacters like / are escaped).

Example [edit]

In case user names containing @, # and € should be prevented, the following setting is used:

$wgInvalidUsernameCharacters = '@#€';