Change Special:ChangePassword to use OOUI
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Tue, 15 Sep 2015 17:54:02 +0000 (19:54 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Tue, 3 Nov 2015 15:06:22 +0000 (16:06 +0100)
commit64c2de519225b0540be86fa521daec37f85da1f7
tree40ea13924a0ea4ea656a0c4edd8361102e968045
parentbacc11eb30ddf01624d5448f432b96afdae67c28
Change Special:ChangePassword to use OOUI

In order to work with OOUI properly, SpecialChangePassword::attemptReset() doesn't
throw PasswordErrors anymore. It now returns a Status object which
is set to fatal, if some requirement doesn't meet.

In OOUIHTMLForm: Handle Message objects as errors correctly. It's a valid parameter
for fatal to use a Message object instead of a message key, so OOUIHTMLForm needs
to handle Mesage objects as Message objects (can be parsed directly) instead of using
it as a message key (which usually doesn't exist).

Bug: T78373
Change-Id: Id768833bbd966cdeadd5a13fdb64b636ea2062ef
includes/htmlform/OOUIHTMLForm.php
includes/specials/SpecialChangePassword.php