Topic on User talk:FreedomFighterSparrow

Replace Text and $wgReservedUsernames

6
Yaron Koren (talkcontribs)

Hi, can you please explain this edit? I don't understand this.

FreedomFighterSparrow (talkcontribs)

Sure - maybe I wasn't clear enough. ReplaceText adds $wgReplaceTextUser to the array of $wgReservedUsernames; such users cannot login, change password, etc. So the user can only be used for ReplaceText from that point onward. In my personal example, I tried using the same bot user for $wgReplaceTextUser as well as Pywikibot; but the minute the user is in $wgReservedUsernames, it can no longer authenticate on the wiki.

Yaron Koren (talkcontribs)

Are you sure about that? I don't see $wgReservedUsernames anywhere in the Replace Text code.

FreedomFighterSparrow (talkcontribs)

ReplaceText uses hook UserGetReservedNames, which amounts to the same...

Yaron Koren (talkcontribs)

Ah, yes - now I see. That was added a few months ago by someone else, as part of a set of security improvements to Replace Text - I wasn't even really aware of that change. What do you think - is this change a problem? Or is the only issue the fact that it's not documented?

FreedomFighterSparrow (talkcontribs)
Reply to "Replace Text and $wgReservedUsernames"