Topic on Project:Support desk

[RESOLVED] Username with @ sign inside

3
192.166.53.201 (talkcontribs)

Hello, our usernames are taken from another application with the syntax "user@domain.de" ... this works perfect but if we try to change the userrights per specialpage, the mediawiki tells us its not possible because the user is not local ... it looks like he interpreted the @ as other domain.

How can i change the rules for usernames and allow the "@" signs in it?

Thanks al lot :)

Gerd

88.130.78.95 (talkcontribs)

Hi Gerd,

you can set

 $wgInvalidUsernameCharacters = '';

in LocalSettings.php. This would break interwiki stuff, but if you only have one single wiki and do not use the interwiki functionality, then this won't be a problem. See Manual:$wgInvalidUsernameCharacters for more details.

192.166.53.201 (talkcontribs)

Perfect! Thanks a lot! I use:

$wgInvalidUsernameCharacters = ' ' ; $wgUserrightsInterwikiDelimiter = ' ';

and now its possible to change userrights for our new users with "@" in usernames. We doesnt use Interwiki functionality :o)

Reply to "[RESOLVED] Username with @ sign inside"