Remove $purpose parameter from password validity check
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 1 Dec 2016 23:30:23 +0000 (18:30 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 1 Dec 2016 23:41:01 +0000 (18:41 -0500)
commit5840c440ce414d72eef1d384383413942a55fe8e
tree6adbe297706ec8ba6517848db3f6ed1338e05e30
parent323ec6cea2f9af80022ba912628f2a7dd0255736
Remove $purpose parameter from password validity check

This was added in I56b6600 in an attempt to work around a bug in
CentralAuth, but the bug has since been fixed in a better way. No hook
functions in Gerrit use the parameter (or ever have, as far as I can
tell), and anything that was passing a value other than the default
'login' has since been removed. So let's just get rid of it instead of
keeping it around doing nothing.

Change-Id: Ie604e03d268706221161ac93eb866f477e466fb4
docs/hooks.txt
includes/password/UserPasswordPolicy.php
includes/user/User.php