diff options
author | Thalia <thalia.e.chan@googlemail.com> | 2024-12-10 06:25:23 +0000 |
---|---|---|
committer | Dreamy Jazz <dreamyjazzwikipedia@gmail.com> | 2024-12-12 17:57:31 +0000 |
commit | bdcb4c1c978f27ae3328e52d7a9552c67009ba9a (patch) | |
tree | 824eba91f555ea48d1520e556def7bbc7891638a /docs/config-schema.yaml | |
parent | b23dbdda1154a568bcf5dd1273e40d999ea53572 (diff) | |
download | mediawikicore-bdcb4c1c978f27ae3328e52d7a9552c67009ba9a.tar.gz mediawikicore-bdcb4c1c978f27ae3328e52d7a9552c67009ba9a.zip |
temp accounts: Break up temporary user names with hyphens
Why:
* Temporary user names contain a generated part. The method for
generating this part is configurable, and uses different
implementations of SerialMapping.
* The PlainNumericSerialMapping is used by default, but can be
difficut to read if the number that is generated is long.
What:
* Add ReadableNumericSerialMapping, similar to the plain numeric
mapping, but with hyphens after every group of 5 digits, for
readability.
* Make ReadableNumericSerialMapping the default in the config
$wgAutoCreateTempUser['serialMapping']['type'].
Bug: T381845
Change-Id: I262f1de38370c9e228f2fe804e95d9d43c49ca86
Diffstat (limited to 'docs/config-schema.yaml')
-rw-r--r-- | docs/config-schema.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/config-schema.yaml b/docs/config-schema.yaml index 55d034c803dc..9cca676605e7 100644 --- a/docs/config-schema.yaml +++ b/docs/config-schema.yaml @@ -4864,7 +4864,7 @@ config-schema: matchPattern: { type: [string, array, 'null'], default: null } reservedPattern: { type: [string, 'null'], default: ~$1 } serialProvider: { type: object, default: { type: local, useYear: true } } - serialMapping: { type: object, default: { type: plain-numeric } } + serialMapping: { type: object, default: { type: readable-numeric } } expireAfterDays: { type: [integer, 'null'], default: 90 } notifyBeforeExpirationDays: { type: [integer, 'null'], default: 10 } type: object @@ -4911,6 +4911,7 @@ config-schema: - serialMapping: (array) Configuration for mapping integer indexes to strings to substitute into genPattern. - type: (string) May be + - "readable-numeric" to use ASCII decimal numbers broken up with hyphens - "plain-numeric" to use ASCII decimal numbers - "localized-numeric" to use numbers localized using a specific language - "filtered-radix" to use numbers in an arbitrary base between 2 and 36, @@ -4925,7 +4926,8 @@ config-schema: be zero-based array indexes. - uppercase: (bool) With "filtered-radix", whether to use uppercase letters, default false. - - offset: (int) With "plain-numeric", a constant to add to the stored index. + - offset: (int) With "plain-numeric" and "readable-numeric", a constant to add to the + stored index. - expireAfterDays: (int|null, default 90) If not null, how many days should the temporary accounts expire? Requires expireTemporaryAccounts.php to be periodically executed in order to work. |