wiki.techinc.nl/tests/phpunit/includes
csteipp 01c8c421f8 Password Expiration
Add functionality to expire users' passwords:
 * Adds column to the user table to keep a password expiration
 * Adds $wgPasswordExpirationDays, which will force users to reset
   their passwords after a set number of days. By default, this set
   to false, so passwords never expire.
 * Adds a default grace period of 7 days, where if the user's password
   is expired, they can still login, but are encouraged to reset their
   password.
 * Adds hook 'LoginPasswordResetMessage' to update reset message, in
   case an extension wants to vary the message on a particular reset
   event.
 * Adds hook 'ResetPasswordExpiration' to allow extensions to change
   the expiration date when the user resets their password. E.g., if
   an extension wants to vary the expiration based on the user's group.

If the user is in the grace period, they get a password reset form
added to the login successful page. If an extension prevents showing
the login successful page (like CentralAuth), it should be updated to
show a password change form during the grace period. After the grace
period, the user will not be able to login without changing their
password.

Also prevents a successful reset if the user is "changing" their
password to their existing password.

No passwords will expire by default. Sites will have to call
User->expirePassword() from their own maintenance script to trigger a
password reset for a user.

Bug: 54997
Change-Id: I92a9fc63b409b182b1d7b48781d73fc7216f8061
2014-02-20 09:41:51 -08:00
..
api Make ApiCreateAccount return camelcase statuses 2014-02-20 20:49:45 +05:30
cache Fix scope on all /phpunit test methods 2013-10-24 10:31:32 +02:00
changes Move RecentChangeTest to subdirectory 2013-11-18 16:45:15 +01:00
config Config: Add Config and GlobalConfig classes 2014-01-27 21:10:30 -08:00
content Make setUp and tearDown protected in tests 2013-11-24 01:48:09 +01:00
db Avoid interacting with LBFactory singleton in tests 2014-01-02 14:27:19 +01:00
debug Fixed spacing 2013-11-21 18:52:25 +00:00
diff Make setUp and tearDown protected in tests 2013-11-24 01:48:09 +01:00
filebackend Fixed wrong usage of $tmpFile in Swift backend 2014-01-15 13:05:01 -08:00
filerepo filebackend: cleaned up the FileBackend constructor 2013-12-03 13:57:01 -08:00
GlobalFunctions Use lower memory limits 2013-11-23 02:53:55 +05:30
htmlform Cleanup HTMLCheckMatrixTest. 2014-01-06 14:30:46 +01:00
installer Fix scope on all /phpunit test methods 2013-10-24 10:31:32 +02:00
jobqueue Cleanup RefreshLinksPartitionTest 2014-01-25 14:15:42 +01:00
json Merge "FormatJson: Remove whitespace from empty arrays and objects" 2013-10-25 22:33:12 +00:00
libs Moved HashRing to /libs 2014-01-07 22:18:09 +00:00
logging Call Language::getLocalisationCache() static 2014-01-04 21:33:12 +01:00
media Replace a bunch of extension_loaded() checks with checkPHPExtension() 2014-01-23 23:09:53 +00:00
normal @covers tags for more test classes 2013-10-24 20:35:04 +01:00
objectcache Fix doc error in new incr test 2013-10-23 16:56:05 +00:00
parser Added a MemoryFileBackend class and made MockFileBackend subclass it 2013-12-19 12:38:00 -08:00
search Fix SearchEngineTest when $wgSearchType is set to non-default 2014-01-03 11:28:41 +01:00
site Add @covers tags for more tests 2013-10-21 11:28:39 +02:00
specials ChangesListSpecialPage: Implement buildMainQueryConds() 2014-01-27 18:32:41 +01:00
upload Fixed spacing 2013-11-21 18:52:25 +00:00
utils Workaround ip2long limitation 2014-01-17 00:23:49 +00:00
ArrayUtilsTest.php Create and move some functions for class ArrayUtils 2014-01-23 22:13:22 +00:00
ArticleTablesTest.php Avoid extra parsing in prepareContentForEdit() 2013-11-15 00:18:57 +00:00
ArticleTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
BlockTest.php Remove methods in Block deprecated in 1.18 2014-01-11 20:32:24 +01:00
CollationTest.php Replace a bunch of extension_loaded() checks with checkPHPExtension() 2014-01-23 23:09:53 +00:00
DiffHistoryBlobTest.php Replace a bunch of extension_loaded() checks with checkPHPExtension() 2014-01-23 23:09:53 +00:00
EditPageTest.php Fixed spacing 2013-11-21 18:52:25 +00:00
ExceptionTest.php Fixed spacing 2013-12-08 20:31:47 +01:00
ExternalStoreTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
ExtraParserTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
FallbackTest.php Fixed spacing 2013-11-19 19:03:54 +01:00
FauxRequestTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
FauxResponseTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
FormOptionsInitializationTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
FormOptionsTest.php FormOptions: Implement FLOAT type 2013-11-07 23:50:59 +01:00
HooksTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
HtmlFormatterTest.php assertValidHtml for checking html in test cases. 2014-01-17 12:42:35 +01:00
HtmlTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
HttpTest.php Fix scope on all /phpunit test methods 2013-10-24 10:31:32 +02:00
LanguageConverterTest.php @covers tags for inclues/*Test 2013-10-24 11:54:02 +01:00
LicensesTest.php @covers tags for unit tests 2013-10-24 18:22:57 +01:00
LinkerTest.php Fix scope on all /phpunit test methods 2013-10-24 10:31:32 +02:00
LinkFilterTest.php Fixed spacing 2013-12-01 20:58:51 +01:00
LinksUpdateTest.php @covers tags for unit tests 2013-10-24 18:22:57 +01:00
LocalFileTest.php filebackend: cleaned up the FileBackend constructor 2013-12-03 13:57:01 -08:00
LocalisationCacheTest.php @covers tags for unit tests 2013-10-24 18:22:57 +01:00
MessageTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00
MWExceptionHandlerTest.php Fixed spacing 2013-11-19 19:03:54 +01:00
MWFunctionTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00
MWNamespaceTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00
MWTimestampTest.php Expand MWTimestamp tests 2014-01-26 18:01:07 +01:00
OutputPageTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00
PathRouterTest.php Fixed spacing 2013-11-21 18:52:25 +00:00
PreferencesTest.php Fixed spacing 2013-12-01 20:58:51 +01:00
RequestContextTest.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00
ResourceLoaderModuleTest.php resourceloader: Add definition hashing to improve cache invalidation 2013-12-02 21:45:33 -08:00
ResourceLoaderTest.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00
RevisionStorageTest.php Remove deprecated methods from Revision, SkinTemplate, and WikiPage 2013-12-27 19:44:14 +01:00
RevisionStorageTest_ContentHandlerUseDB.php Fixed spacing 2013-11-21 18:52:25 +00:00
RevisionTest.php Fixed spacing 2013-11-21 18:52:25 +00:00
SampleTest.php Fix scope on all /phpunit test methods 2013-10-24 10:31:32 +02:00
SanitizerTest.php Merge "Put the HTML attribute whitelist closer to HTML5" 2013-11-02 14:07:07 +00:00
SanitizerValidateEmailTest.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00
SiteConfigurationTest.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00
SpecialPageTest.php Don't assume test user has ID 1 in SpecialPageTest 2013-12-06 13:48:22 +01:00
StatusTest.php +Test for Status->CleanParams with a callback 2014-01-25 16:14:49 +01:00
TemplateCategoriesTest.php Add a RefreshLinks job when a template is deleted 2013-11-06 12:56:53 -05:00
TestUser.php Improve TestUser group handling 2014-01-04 19:58:25 +00:00
TimeAdjustTest.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00
TitleArrayFromResultTest.php Initial Tests for TitleArrayFromResult 2014-01-26 19:32:06 +01:00
TitleMethodsTest.php Make setUp and tearDown protected in tests 2013-11-24 01:48:09 +01:00
TitlePermissionTest.php Use lowercase key words 2013-11-23 15:56:42 +01:00
TitleTest.php Add title tests about interwiki prefix 2014-02-04 14:53:54 +00:00
UserArrayFromResultTest.php Add initial tests for UserArrayFromResult 2014-01-26 19:31:01 +01:00
UserMailerTest.php Fixed spacing 2013-11-19 19:03:54 +01:00
UserTest.php Password Expiration 2014-02-20 09:41:51 -08:00
WebRequestTest.php Support CIDR ranges in $wgSquidServersNoPurge 2013-11-07 13:14:23 -07:00
WikiPageTest.php Give alreadyrolled error when rollback will be a null edit 2014-02-17 20:24:13 +01:00
WikiPageTest_ContentHandlerUseDB.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00
XmlJsTest.php Fixed spacing 2013-11-19 19:03:54 +01:00
XmlSelectTest.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00
XmlTest.php Fix scope on all /phpunit test methods 2013-10-24 10:31:32 +02:00
XmlTypeCheckTest.php Add more @covers tags and test cleanup 2013-10-22 08:59:42 +00:00