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