Fix handling of already logged-in user in Special:Userlogin
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 18 Jul 2018 22:49:50 +0000 (00:49 +0200)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 18 Jul 2018 22:49:50 +0000 (00:49 +0200)
commit5ba1d4ceae6b1fa675c37575b5d59de338911a27
tree18a09f2da45a8bd87a2d6090bd84e9805de7791e
parente5d71f2552893f15da9c0be7dd1fa210adb7be23
Fix handling of already logged-in user in Special:Userlogin

Due to a forgotten return clause, the full request handling
is executed after calling successfulAction() when the user
reloads the login page while logged in. With a typical setup
case this is masked by the fact that successfulAction() does
a redirect (although it probably still impacts performance),
for less common configurations this might result in the login
form rendered below a success message, or in calling extension
hooks which should not be called.

Bug: T185702
Change-Id: If19220c4cf17b08f7e03ca0d06381067f26dda1a
includes/specialpage/LoginSignupSpecialPage.php