Only require necessary fields in Special:ResetPass
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 21 Aug 2009 21:06:06 +0000 (21:06 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 21 Aug 2009 21:06:06 +0000 (21:06 +0000)
commit3d3aa7c369e21a6bbc25299739adb1725dfe2fc1
tree8a9a280e8b776d9e7af547b10c9eaaba94458885
parentf103c057d0d6fcb54ead147fbdb65d83a73d2e07
Only require necessary fields in Special:ResetPass

This fixes r54567.  That made the password fields on Special:ResetPass
always required, but in fact the current password should never be
required (existing users always might have empty passwords), and the new
password is only required if $wgMinimalPasswordLength > 0.

This commit also permits passing array( 'required' ) to
Html::(rawE|e)lement() instead of array( 'required' => 'meaningless' ),
for boolean attribs only.  This syntax is used in SpecialResetpass.
includes/Html.php
includes/specials/SpecialResetpass.php