Fix SpecialPasswordResetOnSubmit parameter handling
authorGergő Tisza <gtisza@wikimedia.org>
Tue, 15 Nov 2016 02:27:02 +0000 (02:27 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Tue, 15 Nov 2016 02:41:57 +0000 (02:41 +0000)
commitf9a86b01c975b4863fd7c9bc039353a5b8753f3c
tree9a0fbf367f9e28efc13becd31ce7fb186e7866ff
parent2800d896abaeb5703ce075e61cb30747dd5b2379
Fix SpecialPasswordResetOnSubmit parameter handling

Special:PasswordReset will take either the username or the email
into account but never both. Reflect this in the way parameters
are passed to the hook.

This also makes sure hook handlers never receive an unsanitized
email address.

Change-Id: I8d3b3d81e0cd5f92e5cd0a866a16695638610592
includes/user/PasswordReset.php