Disable Special:PasswordReset when $wgEnableEmail is false
authorJuneHyeon Bae <devunt@gmail.com>
Tue, 12 Mar 2013 06:10:17 +0000 (15:10 +0900)
committerOri Livneh <ori@wikimedia.org>
Thu, 11 Apr 2013 19:50:37 +0000 (12:50 -0700)
commit8427a425b8eddfec0b1faa9b89b6950129681eb6
treecd257bff1ac13585bac1937c8012cacd8d57ea22
parenta2c673490ceaf4d9d12e7528553e51fef52841c0
Disable Special:PasswordReset when $wgEnableEmail is false

Previously one could still navigate to the page by entering its URL directly,
and from there be able to request a password reset e-mail for any user who has
an e-mail address configured. This patch adds a check for $wgEnableEmail in the
SpecialPage code, replacing the interface with an error message when e-mail is
not enabled.

Change-Id: I42be68c6a068aafdf45623eb35bb21aa684f54f6
RELEASE-NOTES-1.22
includes/specials/SpecialPasswordReset.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc