Set wsDomain based on the user's session, if domain is set in the session. When users...
authorRyan Lane <laner@users.mediawiki.org>
Tue, 6 Sep 2011 18:45:36 +0000 (18:45 +0000)
committerRyan Lane <laner@users.mediawiki.org>
Tue, 6 Sep 2011 18:45:36 +0000 (18:45 +0000)
includes/specials/SpecialChangePassword.php

index fef507c..6d7f558 100644 (file)
@@ -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' ) );