Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/293535

Change subject: Use 'crsf' token with mw.Api#postWithToken
......................................................................

Use 'crsf' token with mw.Api#postWithToken

Instead of the deprecated 'edit' token.

Change-Id: I10dd800e696b58ddcfede10ad4e6002f39c45fb9
---
M modules/ext.MassMessage.content.js
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MassMessage 
refs/changes/35/293535/1

diff --git a/modules/ext.MassMessage.content.js 
b/modules/ext.MassMessage.content.js
index 457904d..632f318 100644
--- a/modules/ext.MassMessage.content.js
+++ b/modules/ext.MassMessage.content.js
@@ -88,7 +88,7 @@
                                $link.attr( 'data-site' ) === 'local' ? '' : 
$link.attr( 'data-site' )
                        );
 
-                       ( new mw.Api() ).postWithToken( 'edit', {
+                       ( new mw.Api() ).postWithToken( 'csrf', {
                                action: 'editmassmessagelist',
                                spamlist: mw.config.get( 'wgPageName' ),
                                remove: param
@@ -159,7 +159,7 @@
                        // Clear previous error messages.
                        $( '#mw-massmessage-addform .error' ).remove();
 
-                       ( new mw.Api() ).postWithToken( 'edit', {
+                       ( new mw.Api() ).postWithToken( 'csrf', {
                                action: 'editmassmessagelist',
                                spamlist: mw.config.get( 'wgPageName' ),
                                add: getApiParam( title, site )

-- 
To view, visit https://gerrit.wikimedia.org/r/293535
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I10dd800e696b58ddcfede10ad4e6002f39c45fb9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MassMessage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to