Index: trunk/phase3/includes/api/ApiLogin.php |
— | — | @@ -68,9 +68,12 @@ |
69 | 69 | } |
70 | 70 | |
71 | 71 | $loginForm = new LoginForm( $req ); |
| 72 | + |
| 73 | + global $wgCookiePrefix; |
| 74 | + |
72 | 75 | switch ( $authRes = $loginForm->authenticateUserData() ) { |
73 | 76 | case LoginForm::SUCCESS: |
74 | | - global $wgUser, $wgCookiePrefix; |
| 77 | + global $wgUser; |
75 | 78 | |
76 | 79 | $wgUser->setOption( 'rememberpassword', 1 ); |
77 | 80 | $wgUser->setCookies(); |