wiki.techinc.nl/tests/phpunit/unit/includes/user
Dreamy Jazz 560197c660 Deny temp account autocreation when temp accounts are disabled
Why:
* When temporary accounts are disabled, no new temporary
  accounts should be created either on edit or through
  a CentralAuth autocreation.
* UserNameUtils::isUsable is used to prevent the
  CentralAuth autocreation making the temporary account
  username not usable for login or account creation.
* However, this check to determine if the name is
  reserved by the temporary user system still considers
  the name as a valid temporary account if the system
  was once enabled (but since disabled).
* This is a bug, and instead if the feature is disabled
  the username should be considered unusable. This then
  prevents the CentralAuth autocreation on a wiki which
  knows the feature but has it disabled.

What:
* Update UserNameUtils::isUsable to return false if
  the name is reserved by the temporary user system
  and TempUserConfig::isEnabled returns false.
* Test this new behaviour with a unit test.

Bug: T370513
Change-Id: I467c39538796a660a7417397c99928a1a25007bc
2024-07-19 16:32:35 +00:00
..
CentralId block: Deprecate and stop using $wgBlockTargetMigrationStage 2024-05-10 15:54:17 +10:00
Options Add new conditional default conditions for user options: anon and named 2024-04-02 14:46:53 -07:00
Registration
TempUser [temp accounts] Introduce 'known' config flag 2024-06-13 22:11:27 +02:00
ActorCacheTest.php Remove all @package comments 2024-05-10 13:53:15 +02:00
ActorStoreFactoryTest.php Merge "Remove all @package comments" 2024-05-13 12:21:22 +00:00
UserArrayFromResultTest.php tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
UserGroupManagerFactoryTest.php
UserIdentityUtilsTest.php
UserIdentityValueTest.php
UserNamePrefixSearchTest.php block: Deprecate and stop using $wgBlockTargetMigrationStage 2024-05-10 15:54:17 +10:00
UserNameUtilsTest.php Deny temp account autocreation when temp accounts are disabled 2024-07-19 16:32:35 +00:00
UserTimeCorrectionTest.php