Index: branches/wmf/1.16wmf3/includes/api/ApiLogin.php |
— | — | @@ -91,8 +91,11 @@ |
92 | 92 | break; |
93 | 93 | |
94 | 94 | case LoginForm::NEED_TOKEN: |
| 95 | + global $wgCookiePrefix; |
95 | 96 | $result['result'] = 'NeedToken'; |
96 | 97 | $result['token'] = $loginForm->getLoginToken(); |
| 98 | + $result['cookieprefix'] = $wgCookiePrefix; |
| 99 | + $result['sessionid'] = session_id(); |
97 | 100 | break; |
98 | 101 | |
99 | 102 | case LoginForm::WRONG_TOKEN: |