SpecialEmailUser: Don't increment pingLimiter() just for opening the page
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 6 Oct 2017 07:36:07 +0000 (00:36 -0700)
committerAnomie <bjorsch@wikimedia.org>
Mon, 23 Oct 2017 13:38:09 +0000 (13:38 +0000)
commite31c9986a17f036ec89e2ef3f04519026e42ebf3
treedb8ad65596aa10b04d11971cddb5b605ec7abb7c
parent04a8781b3ea494cd7944e104863b3eaa34a1e733
SpecialEmailUser: Don't increment pingLimiter() just for opening the page

When checking whether the user can even send am email, don't increment
the rate limits since they haven't sent an email yet. Only increment it
once we're fairly sure that the email will actually get sent.

Bug: T177575
Change-Id: I3f832accd6259c040438ebee4c94847faa108ea6
includes/specials/SpecialEmailuser.php