Revert r89537 till we decide a sane way to have it on/off as API bools suck
authorSam Reed <reedy@users.mediawiki.org>
Mon, 6 Jun 2011 19:26:58 +0000 (19:26 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 6 Jun 2011 19:26:58 +0000 (19:26 +0000)
RELEASE-NOTES-1.19
includes/api/ApiLogin.php

index 9ec4dbb..3eb1520 100644 (file)
@@ -99,8 +99,6 @@ production.
 * (bug 28897) rvparse doesn’t seem to work with rvsection
 * (bug 25734) API: possible issue with revids validation
 * (bug 28002) Internal error in ApiFormatRaw::getMimeType
-* (bug 26597) Allow toggling of persistent cookies ("remember me") in API
-  action=login
 * (bug 29237) add interwiki target url attribute to api/query/interwiki
 * (bug 28392) mark action=undelete&timestamps as type "timestamp"
 * (bug 21346) Make deleted images searchable by hash (disabled in Miser Mode)
index ff0a360..fa57626 100644 (file)
@@ -60,12 +60,9 @@ class ApiLogin extends ApiBase {
                        'wpPassword' => $params['password'],
                        'wpDomain' => $params['domain'],
                        'wpLoginToken' => $params['token'],
+                       'wpRemember' => ''
                ) );
 
-               if ( $params['rememberme'] ) {
-                       $req['wpRemember'] = '';
-               }
-
                // Init session if necessary
                if ( session_id() == '' ) {
                        wfSetupSession();
@@ -171,10 +168,6 @@ class ApiLogin extends ApiBase {
                        'password' => null,
                        'domain' => null,
                        'token' => null,
-                       'rememberme'  => array(
-                               ApiBase::PARAM_TYPE => 'boolean',
-                               ApiBase::PARAM_DFLT => true,
-                       ),
                );
        }
 
@@ -184,7 +177,6 @@ class ApiLogin extends ApiBase {
                        'password' => 'Password',
                        'domain' => 'Domain (optional)',
                        'token' => 'Login token obtained in first request',
-                       'rememberme' => 'Make the cookies persistant'
                );
        }