Refactor password validity checking
authorcsteipp <csteipp@wikimedia.org>
Wed, 12 Mar 2014 01:47:29 +0000 (18:47 -0700)
committerParent5446 <tylerromeo@gmail.com>
Sat, 15 Mar 2014 06:30:25 +0000 (06:30 +0000)
commitea7687a7fd937fc68f5981f7182d5483d62b0e63
tree27874b8fce5ceef2fe8a60b66e3470dfbc677500
parentbedc38649bae342c30b0ac86ad2fa71f663528da
Refactor password validity checking

Refactor the password checks to return a status object, so the function
can handle the entire error message, or return multiple error messages.

This patchset aims to keep the functionality identical. A followup
patchset can further improve the functionality. E.g., although
getPasswordValidity stated it could return an array of messages, it
never did so except from the hook, so most callers expect and handle a
single string.

Change-Id: I87644486f5572dc067ebdbacd01fb39c67e5612a
includes/User.php
tests/phpunit/includes/UserTest.php