r96358 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96357‎ | r96358 | r96359 >
Date:18:45, 6 September 2011
Author:laner
Status:ok
Tags:
Comment:
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.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialChangePassword.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialChangePassword.php
@@ -65,6 +65,9 @@
6666
6767 if( $request->wasPosted() && $user->matchEditToken( $request->getVal( 'token' ) ) ) {
6868 try {
 69+ if ( isset( $_SESSION['wsDomain'] ) ) {
 70+ $this->mDomain = $_SESSION['wsDomain'];
 71+ }
6972 $wgAuth->setDomain( $this->mDomain );
7073 if( !$wgAuth->allowPasswordChange() ) {
7174 $this->error( wfMsg( 'resetpass_forbidden' ) );

Follow-up revisions

RevisionCommit summaryAuthorDate
r965111.18: MFT r96163, r96174, r96212, r96217, r96218, r96271, r96273, r96306, r96...catrope22:07, 7 September 2011

Status & tagging log