mediawiki.api: Support assert parameter in getToken and postWithToken
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Mon, 25 Aug 2014 12:04:29 +0000 (14:04 +0200)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Sun, 21 Sep 2014 09:32:25 +0000 (11:32 +0200)
commite4a3cb3b5725cdec0705c1752b15be6d7d87e6c7
tree2713c4c87c79cadd23ef6c9b06d749ee8ae5c0d4
parent48d433b102e636644d833e408ba028880f90f62a
mediawiki.api: Support assert parameter in getToken and postWithToken

Currently if you try to use assert=user with postWithToken the
request will fail with "token-missing" instead of "assertuserfailed"
because the assertion is not copied to getToken request.

Change-Id: Ibe48956adc6d2f171f88e6ef2bba8a39ae0127f2
resources/src/mediawiki.api/mediawiki.api.js
tests/qunit/suites/resources/mediawiki.api/mediawiki.api.test.js