From 12490b7ae3e31192697e85c60388a25223ede98e Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 27 Sep 2011 19:21:53 +0000 Subject: [PATCH] (bug 31191) Followup to r90934: do this in the successful login code path too. The bug didn't surface in most cases because the user is redirected immediately after a successful login, except when CentralAuth stops that from happening. --- includes/specials/SpecialUserlogin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 73bdd3c698..8ef0d1dd34 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -569,6 +569,10 @@ class LoginForm extends SpecialPage { } else { $wgAuth->updateUser( $u ); $wgUser = $u; + // This should set it for OutputPage and the Skin + // which is needed or the personal links will be + // wrong. + RequestContext::getMain()->setUser( $u ); // Please reset throttle for successful logins, thanks! if ( $throttleCount ) { -- 2.20.1