Add force option to password policy
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 2 Jan 2019 06:17:30 +0000 (22:17 -0800)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 2 Jan 2019 20:38:11 +0000 (12:38 -0800)
commitf15ecc60cd944105e15d378d32249cfafc8e1eec
tree68de97d02e34969cbdd6bb754cd885e67b337d64
parent1d47891cc3d43bc6b47e30d0b605436c3dac1fc9
Add force option to password policy

Adds a way to set an array of options for a password policy. Currently
there is one option, 'forceChange', which forces the user to change
their password (if it fails the given check) before logging in.

Bug: T118774
Change-Id: I28c31fc4eae08c3ac44eff3a05f5e785ce4b9e01
includes/DefaultSettings.php
includes/auth/AbstractPasswordPrimaryAuthenticationProvider.php
includes/password/UserPasswordPolicy.php
includes/user/User.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/auth/AbstractPasswordPrimaryAuthenticationProviderTest.php
tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php
tests/phpunit/includes/password/UserPasswordPolicyTest.php