Background
We are changing the format of temporary user names based on user research: T345855: Update temporary username format . On our beta sites, this is complicated by the fact that temporary users have already been created using the old format.
We investigated whether to rename the old users, and decided not to do that, but instead to support recognizing multiple naming formats as temporary users. Investigation: T349489: Investigate: What would be needed for renaming temporary accounts on beta
What needs doing
MediaWiki recognizes a temporary account user by comparing the name to $wgAutoCreateTempUser['matchPattern'] in RealTempUserConfig::isTempName.
It should be possible to define more than one pattern in $wgAutoCreateTempUser['matchPattern'].
This may involve $wgAutoCreateTempUser['matchPattern'] accepting an array of strings, and the RealTempUserConfig->matchPattern property holding an array of Patterns.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | https://phabricator.wikimedia.org/T354619 here |









