Add maintenance script for deleting local passwords
authorGergő Tisza <tgr.huwiki@gmail.com>
Sun, 10 Jun 2018 23:05:59 +0000 (01:05 +0200)
committerReedy <reedy@wikimedia.org>
Thu, 2 Aug 2018 13:47:33 +0000 (13:47 +0000)
commitd7886920762d1ec5a3be9d286a8684288fc8e3dc
treed7eece55bd8af5576389cb8c9560d35cbbf8848b
parentfb73286fba73c399e119ef50ff036255dd6a1096
Add maintenance script for deleting local passwords

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
autoload.php
maintenance/deleteLocalPasswords.php [new file with mode: 0644]
maintenance/includes/DeleteLocalPasswords.php [new file with mode: 0644]