From 8ad069bd5a113c42151c82ed002db10a458e4b0d Mon Sep 17 00:00:00 2001 From: Ryan Lane Date: Tue, 6 Sep 2011 18:45:36 +0000 Subject: [PATCH] Set wsDomain based on the user's session, if domain is set in the session. When users use the password change function in their preferences a domain isn't passed, it's assumed to be in their session. --- includes/specials/SpecialChangePassword.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/specials/SpecialChangePassword.php b/includes/specials/SpecialChangePassword.php index fef507cd31..6d7f55803f 100644 --- a/includes/specials/SpecialChangePassword.php +++ b/includes/specials/SpecialChangePassword.php @@ -65,6 +65,9 @@ class SpecialChangePassword extends SpecialPage { if( $request->wasPosted() && $user->matchEditToken( $request->getVal( 'token' ) ) ) { try { + if ( isset( $_SESSION['wsDomain'] ) ) { + $this->mDomain = $_SESSION['wsDomain']; + } $wgAuth->setDomain( $this->mDomain ); if( !$wgAuth->allowPasswordChange() ) { $this->error( wfMsg( 'resetpass_forbidden' ) ); -- 2.20.1