Installer: Validate password against sysop/bureaucrat policies
authorThis, that and the other <at.light@live.com.au>
Thu, 29 Oct 2015 12:24:40 +0000 (23:24 +1100)
committerThis, that and the other <at.light@live.com.au>
Thu, 29 Oct 2015 12:24:40 +0000 (23:24 +1100)
commitda9696333a3f40f456c5730f06992a5fca21b5ff
treea08dd47f00dadc815343ce8cee53f26ab90f8bb6
parente6cf3aa0b3bc4c6200616e11aba7a0a0a3481d4c
Installer: Validate password against sysop/bureaucrat policies

Previously, user-group-specific policies were not checked, because the
user hadn't been created yet, and so wasn't assigned to any groups. In his
overhaul of password policy, Chris wrote a function that was designed for
exactly this purpose (UserPasswordPolicy::checkUserPasswordForGroups) but
didn't put it into use.

Some changes to the error handling code are needed so the error messages
display correctly.

Bug: T115700
Change-Id: I1391c77c9667b646b29003bb0b2abcdc21d8c4d8
includes/installer/WebInstaller.php
includes/installer/WebInstallerPage.php