Last modified: 2011-12-14 17:37:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28597, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26597 - Allow toggling of persistent cookies ("remember me") in API action=login
Allow toggling of persistent cookies ("remember me") in API action=login
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-06 01:44 UTC by Ilmari Karonen
Modified: 2011-12-14 17:37 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ilmari Karonen 2011-01-06 01:44:33 UTC
Currently, the cookies set when logging in via the API are always persistent. It would be nice if ApiLogin.php took an optional boolean parameter to control this behavior and passed it along to LoginForm (via the wpRemember parameter).

This should be pretty easy to implement, I just don't feel like doing it just now and I'm not that familiar with the API internals anyway.  I might do it sometime later if no-one else does it first.

Sort of related to bug 26538, but not really the same thing.
Comment 1 Sam Reed (reedy) 2011-06-05 21:51:32 UTC
r89537
Comment 2 Brion Vibber 2011-06-06 19:19:04 UTC
Reopening; r89537 caused test breakage and may not be correct.
Comment 3 Sam Reed (reedy) 2011-06-06 19:27:22 UTC
Reverted in r89537 pending a better fix
Comment 4 Bryan Tong Minh 2011-07-08 18:40:19 UTC
You can add an inverted boolean like nonpersistent=1 to fix this.
Comment 5 Krinkle 2011-07-08 18:48:28 UTC
Perhaps something like 

rememberme && rememberme =='0'

(or rememberme !== '0' ), depending on how overwriting/appending is done.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links