Index: trunk/phase3/includes/api/ApiLogin.php |
— | — | @@ -91,6 +91,11 @@ |
92 | 92 | 'wpRemember' => '' |
93 | 93 | )); |
94 | 94 | |
| 95 | + // Init session if necessary |
| 96 | + if( session_id() == '' ) { |
| 97 | + wfSetupSession(); |
| 98 | + } |
| 99 | + |
95 | 100 | $loginForm = new LoginForm($params); |
96 | 101 | switch ($loginForm->authenticateUserData()) { |
97 | 102 | case LoginForm :: SUCCESS : |