In T349503: Update the serial mapping config for generating temporary user names on beta and T349486: Change temporary user pattern configuration on beta to match the updated prefix we updated $wgAutoCreateTempUser in the operations/mediawiki-config repo. The full value on dewiki beta is:
> $wgAutoCreateTempUser;
= [
"enabled" => true,
"actions" => [
"edit",
],
"genPattern" => "~$1",
"matchPattern" => [
"*$1",
"~2$1",
],
"reservedPattern" => "~$1",
"serialProvider" => [
"type" => "centralauth",
"numShards" => 8,
"useYear" => true,
],
"serialMapping" => [
"type" => "plain-numeric",
],
"expireAfterDays" => 365,
"notifyBeforeExpirationDays" => 10,
]The default settings for $wgAutoCreateTempUser in core is:
> $wgAutoCreateTempUser
= [
"enabled" => false,
"actions" => [
"edit",
],
"genPattern" => "*Unregistered $1",
"matchPattern" => "*$1",
"reservedPattern" => null,
"serialProvider" => [
"type" => "local",
],
"serialMapping" => [
"type" => "plain-numeric",
],
"expireAfterDays" => null,
"notifyBeforeExpirationDays" => null,
]This task proposes to update the defaults in core, so that we have a consistent developer experience (T359043: Enable temp account creation in CI and local development environments via DevelopmentSettings.php) and require fewer overrides in operations/mediawiki-config.git.
Specifically, in core, set:
- "genPattern" => "~$1"
- "matchPattern" => null,
- "reservedPattern" => "~$1",
- "serialProvider" => [ 'type' => 'local', 'useYear' => true ]
- "expireAfterDays" => 365,
- "notifyBeforeExpirationDays" => 10,
These changes are also relevant to T355880: Decide long term strategy for temporary accounts in MediaWiki core





