r26508 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26507‎ | r26508 | r26509 >
Date:18:00, 8 October 2007
Author:catrope
Status:old
Tags:
Comment:
(bug 11569) API Login should return the cookie prefix
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiLogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiLogin.php
@@ -94,7 +94,7 @@
9595 $loginForm = new LoginForm($params);
9696 switch ($loginForm->authenticateUserData()) {
9797 case LoginForm :: SUCCESS :
98 - global $wgUser;
 98+ global $wgUser, $wgCookiePrefix;
9999
100100 $wgUser->setOption('rememberpassword', 1);
101101 $wgUser->setCookies();
@@ -103,6 +103,8 @@
104104 $result['lguserid'] = $_SESSION['wsUserID'];
105105 $result['lgusername'] = $_SESSION['wsUserName'];
106106 $result['lgtoken'] = $_SESSION['wsToken'];
 107+ $result['cookieprefix'] = $wgCookiePrefix;
 108+ $result['sessionid'] = $_COOKIE["{$wgCookiePrefix}_session"];
107109 break;
108110
109111 case LoginForm :: NO_NAME :
Index: trunk/phase3/RELEASE-NOTES
@@ -110,6 +110,7 @@
111111 * Include svn revision number (if install is checked-out from svn) in siteinfo query.
112112 * (bug 11173) Allow limited wikicode rendering via api.php
113113 * (bug 11572) API should provide interface for expanding templates
 114+* (bug 11569) Login should return the cookie prefix
114115
115116 === Languages updated in 1.12 ===
116117

Follow-up revisions

RevisionCommit summaryAuthorDate
r26512Merged revisions 26465-26511 via svnmerge from...david21:07, 8 October 2007

Status & tagging log