aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/deleteLocalPasswords.php
Commit message (Collapse)AuthorAgeFilesLines
* add `use MediaWiki\Maintenance\Maintenance` to some maintenance classesNovem Linguae2024-11-121-0/+2
| | | | | | | A–F. Still need to do F–Z. Bug: T353458 Change-Id: Ieb4bad0658b9cddc9403c6a55ef3bd1245aa08ae
* Exclude boilerplate maintenance code from code coverage reportsDreamy Jazz2024-08-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Why: * Maintenance scripts in core have bolierplate code that is added before and after the class to allow directly running the maintenance script. * Running the maintenance script directly has been deprecated since 1.40, so this boilerplate code is only to support a now deprecated method of running maintenance scripts. * This code cannot also be marked as covered, due to PHPUnit not recognising code coverage for files. * Therefore, it is best to ignore this boilerplate code in code coverage reports as it cannot be marked as covered and also is for deprecated code. What: * Wrap the boilerplate code (requiring Maintenance.php and then later defining the maintenance script class and running if the maintenance script was called directly) with @codeCoverageIgnore comments. * Some files use a different boilerplate code, however, these should also be marked as ignored for coverage for the same reason that coverage is not properly reported for files. Bug: T371167 Change-Id: I32f5c6362dfb354149a48ce9c28da9a7fc494f7c
* Follows-up d78869207Timo Tijhof2018-08-021-2/+2
| | | | | | | * File systems may be case-sensitive. * Use ::class syntax for class literals. Change-Id: Ia126b0b3a8fa702bf046e9539878a90e09fe9da7
* Add maintenance script for deleting local passwordsGergő Tisza2018-08-021-0/+27
This is mainly for the benefit of authentication extensions which all need similar functionality for removing local passwords on a wiki where local authentication was used for a while but has been disabled, but can be used directly to just indiscriminately remove the passwords of all users. To test the change without irreversibly locking out users, an option is provided to make the password invalid in an easy-to-reverse way. The immediate use case is I974184899c33. This patch also introduces the maintenance/includes directory to hold PHP files which are not executable scripts themselves. (Previously such files had a .inc extension, but that is so PHP4.) Bug: T57420 Change-Id: If7207b80a2c8374e90182e0b09d8f76ee94264b0