Add "purpose" to password validity check
authorcsteipp <csteipp@wikimedia.org>
Tue, 14 Jul 2015 19:26:46 +0000 (12:26 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 14 Jul 2015 20:04:23 +0000 (20:04 +0000)
commit6a69a4eb733bd6129533c93b7a1ca4564b16ac32
treeca7a5989eaf9af6147f9df05430bc1675b5252fe
parent6034d6d51640a1a6dc0bbb5376eb45950ea92332
Add "purpose" to password validity check

Allow callers to specify why they are checking a passwords validity, so
some checks can be modified. Only check the default policy on creation,
since the account doesn't exist it's not a member of any groups.

Bug: T104615
Change-Id: I56b66002562aaa1493d94a90309bc8e4ae3841c8
docs/hooks.txt
includes/User.php
includes/installer/WebInstallerPage.php
includes/password/UserPasswordPolicy.php
includes/specials/SpecialUserlogin.php