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 @@
66
66
67
67
if( $request->wasPosted() && $user->matchEditToken( $request->getVal( 'token' ) ) ) {
68
68
try {
69
+ if ( isset( $_SESSION['wsDomain'] ) ) {
70
+ $this->mDomain = $_SESSION['wsDomain'];
71
+ }
69
72
$wgAuth->setDomain( $this->mDomain );
70
73
if( !$wgAuth->allowPasswordChange() ) {
71
74
$this->error( wfMsg( 'resetpass_forbidden' ) );
Follow-up revisions
Revision
Commit summary
Author
Date
r96511
1.18: MFT
r96163
,
r96174
,
r96212
,
r96217
,
r96218
,
r96271
,
r96273
,
r96306
,
r96...
catrope
22:07, 7 September 2011
Status & tagging log
22:07, 7 September 2011
Catrope
(
talk
|
contribs
)
changed the
tags
for r96358
[
removed:
1.18]
18:47, 6 September 2011
Catrope
(
talk
|
contribs
)
changed the
status
of r96358
[
removed:
new
added:
ok]
18:46, 6 September 2011
Ryan lane
(
talk
|
contribs
)
changed the
tags
for r96358
[
added:
1.18]