Commit graph

176 commits

Author SHA1 Message Date
Florian 5f24bff3f4 Use globally not-blocked recaptcha.net instead of google.com
Bug: T250297
Change-Id: I05bb74e65ce9ce425a7a4fecd33a75748ef6cc43
2020-04-17 23:46:21 +00:00
jenkins-bot ecb06a2b7e Merge "[reCaptcha] Fix support for VisualEditor" 2020-04-17 19:01:49 +00:00
Florian 3cb9a7cd17 [reCaptcha] Fix support for VisualEditor
Bug: T250488
Change-Id: Ic99b039186cf290b7258bca1c48a9f4b103065cb
2020-04-17 18:48:28 +00:00
Florian 610ac36573 Remove unused and not working code fragment
Bug: T250236
Change-Id: Ia85d61a81234abe8d238424bcabcf5f5dc4d839f
2020-04-17 17:31:36 +02:00
Translation updater bot c30999fa1b Localisation updates from https://translatewiki.net.
Change-Id: I9c67ba6efd4f118d84917fca71081b55a8d79eb8
2020-04-15 08:23:28 +02:00
Reedy d648372f7f Fix MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic
Change-Id: Idc03460327095e19438fd9a3a542bf4229db4be2
2020-04-15 00:45:00 +01:00
Reedy 74eb713da9 Fix some indenting and whitespace
Change-Id: Ib2c21563f823c6d31a71a94562f808cd2fca3782
2020-04-11 02:27:12 +01:00
Translation updater bot e115281e77 Localisation updates from https://translatewiki.net.
Change-Id: I1adfcf5d9cc14441ff7d4537f705c456dec2a25a
2020-04-07 08:38:24 +02:00
Bartosz Dziewoński da4c75e387 VE integration: Remove "Warning:" label before CAPTCHA
It doesn't add anything and looks silly.
https://phabricator.wikimedia.org/F31677965

Change-Id: I94641a227d26622846ea8b300e8a3e9eb300b651
2020-03-23 23:06:33 +01:00
Translation updater bot c83b47b754 Localisation updates from https://translatewiki.net.
Change-Id: I1f53325212881b8e3e29173051907c2da9c0d2ff
2020-03-10 08:14:55 +01:00
Translation updater bot 5b4a0704b9 Localisation updates from https://translatewiki.net.
Change-Id: Id345c178279d4b640be65c12c3781ab59cd9a1f4
2020-02-10 08:33:14 +01:00
jenkins-bot fce542fcea Merge "Update extension.json files to use manifest_version 2" 2020-01-21 21:18:25 +00:00
jenkins-bot efadd21e76 Merge "Stop passing objects by reference" 2020-01-19 16:43:11 +00:00
James D. Forrester c933d06904 Update extension.json files to use manifest_version 2
Bug: T234114
Change-Id: I9b22aed290fc5c51b2c9bff34466d57e2c65148d
2020-01-19 16:35:49 +00:00
Max Semenik 9380fa050e Stop passing objects by reference
Bug: T193950
Change-Id: I8c4aabe75ffce55f81c7ffb0f76b67155db1f761
2020-01-17 20:08:16 +00:00
Translation updater bot 57b396a362 Localisation updates from https://translatewiki.net.
Change-Id: I4a2b05954be2886f0af4ae791cbabd569b24d364
2020-01-13 09:10:03 +01:00
Translation updater bot 2729464e91 Localisation updates from https://translatewiki.net.
Change-Id: Ifd34091ed84675b531e9ecc0b903a0a2e7d72e54
2019-12-09 09:34:23 +01:00
Daimona Eaytoy 7297235b2a Pass correct type to constructor
Although there was no docblock on CaptchaAuthenticationRequest::__construct,
the method is supposed to get a string and an array, as that's how the
class members are documented and used. Trying to access offsets of null
resulted in PHP notices on PHP 7.4, as seen in the experimental job
for various repos.

Bug: T239726
Change-Id: Idd073ebf3d560543ec225479de060e3c198847eb
2019-12-03 19:30:55 +00:00
Translation updater bot 57f06108a1 Localisation updates from https://translatewiki.net.
Change-Id: I1012f86490e02f11208069ad52bc0c26a173a869
2019-11-29 09:27:17 +01:00
Translation updater bot 37f871c623 Localisation updates from https://translatewiki.net.
Change-Id: I5cbee99ebb367dced9294f2546b767b6f63a1523
2019-11-11 14:47:50 +01:00
Translation updater bot edcc3ba75e Localisation updates from https://translatewiki.net.
Change-Id: I75f598ffc290bebfa38d9c67dc094b1fb48d06df
2019-10-28 16:33:22 +01:00
Translation updater bot 8c52438a50 Localisation updates from https://translatewiki.net.
Change-Id: If3d09da72112a2ff4429b2a81b94d0d4e2e80a99
2019-10-22 09:13:39 +02:00
Translation updater bot 724f328352 Localisation updates from https://translatewiki.net.
Change-Id: Iedf266fa718bde924abd3c0883c84a05fb0f8b86
2019-10-02 09:20:46 +02:00
Translation updater bot 45ca059817 Localisation updates from https://translatewiki.net.
Change-Id: Ie5f8739eff7ad53c04c2d76a4785dc2d9384e272
2019-10-01 09:24:47 +02:00
Translation updater bot b620454b70 Localisation updates from https://translatewiki.net.
Change-Id: Id3b6549ce433680c3e36ecf63724668c03bab2f2
2019-09-12 10:00:09 +02:00
Translation updater bot 4ecffd55d4 Localisation updates from https://translatewiki.net.
Change-Id: Ie097e36f5545c9690276e3d204a3b778ee7835cc
2019-09-03 10:27:12 +02:00
Amir Aharoni a42d5d4adf Move apihelp messages to a separate file
This is one of the last extensions to be converted to having
the API messages in a separate file (at least out of the extensions
that are used be Wikimedia).

This one is a bit different from the others because it actually as several
extensions with separate i18n files, so it requires extra-careful review,
especially in Gruntfile and the extension.json files.

Bug: T189982
Change-Id: I66faae6fd4ff447327587c89ad2a1704edd1b356
2019-08-31 22:52:29 +03:00
libraryupgrader 4575c2ccdb build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 24.0.0 → 26.0.0

npm:
* set-value: 2.0.0 → 2.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* union-value: 1.0.0 → 1.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* mixin-deep: 1.3.1 → 1.3.2
  * https://npmjs.com/advisories/1013
  * CVE-2019-10746

Change-Id: Ie2eff2c48b58600f948dbf9f8c5cb2b2843fbd24
2019-07-14 10:21:38 +00:00
Translation updater bot 3e9f7aa106 Localisation updates from https://translatewiki.net.
Change-Id: I2b40b0f26c33ee41fd08029a1748aed0dae4387d
2019-06-02 22:29:20 +02:00
Umherirrender 72900c1ac5 Improve param docs
Change-Id: Ie0619f6f946e651df9c102f0f4f305c15b10eab4
2019-05-23 21:16:12 +02:00
Translation updater bot 50ea5ffe3a Localisation updates from https://translatewiki.net.
Change-Id: If56327536235571236ad8672a4b4d3cef1128a53
2019-05-10 09:18:58 +02:00
Translation updater bot 8007e3fce0 Localisation updates from https://translatewiki.net.
Change-Id: Ia75576f1bd333505fa4f13752e7bbd7377439693
2019-04-30 22:17:47 +02:00
Translation updater bot 0388ba4f9b Localisation updates from https://translatewiki.net.
Change-Id: I79178d9b4d2b843726c7258b494403bf14e530b7
2019-04-12 08:31:47 +02:00
James D. Forrester 9ef3132dce build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I1e6c500b8a79f8d01b3050dabdece36e77d17706
2019-04-03 15:54:28 -07:00
Translation updater bot d5556702c4 Localisation updates from https://translatewiki.net.
Change-Id: I3db54a204bdb764d9a3b4dc078a67c30ee983819
2019-03-23 10:22:37 +01:00
Translation updater bot 82c0962bc2 Localisation updates from https://translatewiki.net.
Change-Id: I1db0e8f6ddc27c77c316bfcccf6f3a3c01e5eaf4
2019-02-21 22:20:52 +01:00
Ed Sanders 28cb4a71da build: Update eslint-config-wikimedia to 0.10.1
Change-Id: I78b2a1c233c97af39e1c8f8fd9d839d0ffc4936e
2019-02-10 15:44:37 +00:00
libraryupgrader 87715809bb build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: I4650b34b2c6d18cae2bf4650aaf423810fb96457
2019-02-06 12:04:20 +00:00
Bartosz Dziewoński 8f9215deb9 Add mobile target to VE plugin modules
Bug: T213774
Change-Id: I99242bda4e09fec2dfabb2695bf82064cfc48fd7
2019-01-15 01:05:29 +01:00
Translation updater bot c04e889ee6 Localisation updates from https://translatewiki.net.
Change-Id: I67661f751fda513d1edacacc5c0bfb0bd833e4fa
2019-01-13 22:12:53 +01:00
Translation updater bot 2af9163b7f Localisation updates from https://translatewiki.net.
Change-Id: I53a7a4578c8f1b4e778a2de0b66669a79b6d8858
2019-01-09 22:18:46 +01:00
Translation updater bot 848c0ff036 Localisation updates from https://translatewiki.net.
Change-Id: Id0f371f428fb768caf75754ca03a68fd3aed2dcc
2019-01-08 22:29:33 +01:00
Translation updater bot 463b8ec4e5 Localisation updates from https://translatewiki.net.
Change-Id: I23866ec4b898b14902f5b4dc7bd8150286f29240
2019-01-05 22:33:39 +01:00
jenkins-bot 173619f525 Merge "ConfirmEdit: Support No CAPTCHA reCAPTCHA" 2019-01-04 15:39:46 +00:00
Translation updater bot d6d5676431 Localisation updates from https://translatewiki.net.
Change-Id: Ic3094c839d85706ac1f3b797f0a49f5c0e7ab10d
2019-01-03 22:52:10 +01:00
Nouman Saleem e614050b6a ConfirmEdit: Support No CAPTCHA reCAPTCHA
Extend Captcha save error handler to verify user using
noCaptchaReCaptcha.

Bug: T203478
Change-Id: Ia5438bba6ff797dee822caf7664b911f01684744
2019-01-03 19:40:41 +00:00
Umherirrender f482ff5a19 Add description message to be shown on Special:Version
Each submodule of ConfirmEdit should be shown on Special:Version as
FancyCaptcha does on Wmf-Wikis

Change-Id: If34cfe8cfd722f6655099629e313c42239585acf
2018-12-31 16:22:57 +01:00
Translation updater bot 7cc2ff1ae0 Localisation updates from https://translatewiki.net.
Change-Id: I65d98afdb2cb1f0672759dbc180a023ae6b74d69
2018-12-17 22:19:09 +01:00
Translation updater bot fdb21fbb0b Localisation updates from https://translatewiki.net.
Change-Id: I4195f7babe99a4ec7dd336d6af4b22632ce6dfc3
2018-12-14 22:21:39 +01:00
Translation updater bot 51d6485d56 Localisation updates from https://translatewiki.net.
Change-Id: I864f3bb199c348e99c8f31cf8a4f0bc1085e8d64
2018-12-12 22:18:29 +01:00
Translation updater bot 7951ce701e Localisation updates from https://translatewiki.net.
Change-Id: Iab92a54e94fd3a7fe7c49bc855e48f00da36ba68
2018-12-09 22:38:58 +01:00
Translation updater bot f8fedf3541 Localisation updates from https://translatewiki.net.
Change-Id: Ib006a8605192d38eae1b046030751bf29cac7ba4
2018-12-07 22:21:32 +01:00
Translation updater bot 1cb71809bd Localisation updates from https://translatewiki.net.
Change-Id: Ice9d9549c1e90f45b0d858937e922a0cecdf9cd1
2018-12-06 22:31:58 +01:00
Translation updater bot 1e02c431e7 Localisation updates from https://translatewiki.net.
Change-Id: I6bb76ec82bb0cf8b4af5e65b44edfabd5d16a287
2018-11-05 22:24:24 +01:00
Translation updater bot fd7d7a7c1d Localisation updates from https://translatewiki.net.
Change-Id: I5bc27b0723701dcde5c70b613298532930b9a1d5
2018-09-03 22:15:05 +02:00
Translation updater bot 9a8702aa6e Localisation updates from https://translatewiki.net.
Change-Id: I4b6d5a2222e94ab29fe147a6b7350d0df85d813c
2018-08-27 22:16:32 +02:00
Max Semenik 5b7a36a521 Clean up some phpcs problems
Change-Id: Ie956fe86184535a376d0398483ac3c853fa9127c
2018-07-12 23:13:58 +00:00
Translation updater bot dfcc882065 Localisation updates from https://translatewiki.net.
Change-Id: Ifa824d62f2b09723808b5b05e0fe205407fbb662
2018-04-30 22:21:57 +02:00
Translation updater bot 2b179980ee Localisation updates from https://translatewiki.net.
Change-Id: I1cf33f21b0e96f09c5fa7906197cb34874b0f3b3
2018-04-13 22:12:47 +02:00
Translation updater bot 8fff081fa7 Localisation updates from https://translatewiki.net.
Change-Id: Id520c276c27897112994a6a12b4a696956fcc526
2018-03-19 22:19:04 +01:00
Translation updater bot 5566a6492c Localisation updates from https://translatewiki.net.
Change-Id: Ib476caceab613c9c435e4c438efe1a595d8cc7da
2018-03-13 22:23:20 +01:00
Translation updater bot 95549f922c Localisation updates from https://translatewiki.net.
Change-Id: Ia1dcb5075a14ae4281fe2edf0cc85e8b99b6fffd
2018-01-15 22:24:59 +01:00
Umherirrender 1254022153 Improve some parameter docs
Change-Id: Idce2db0b489c19ec9b936cfc4ced3792e6f9711d
2017-09-24 12:14:11 +00:00
Translation updater bot 119975ef1a Localisation updates from https://translatewiki.net.
Change-Id: I382c0df2c1472cf911db7e1a9f12038a80d7f607
2017-07-10 22:34:11 +02:00
Translation updater bot f3702bf8fb Localisation updates from https://translatewiki.net.
Change-Id: If7d90dcdaa5288549b7f571de4c8767ea4011865
2017-06-28 22:44:33 +02:00
Translation updater bot ff15eafcca Localisation updates from https://translatewiki.net.
Change-Id: I34124616e8196b1291259aa73e6a1411229f99bb
2017-06-25 22:55:48 +02:00
Translation updater bot 574e2da664 Localisation updates from https://translatewiki.net.
Change-Id: I339eff851c336423925dcb0a4d6c1f8736f299f2
2017-06-05 22:55:04 +02:00
Translation updater bot b653a9d49e Localisation updates from https://translatewiki.net.
Change-Id: I7839eae607feed662f93e7ba4d7ef409a55cea9e
2017-06-03 22:28:31 +02:00
Translation updater bot 86c36d4b34 Localisation updates from https://translatewiki.net.
Change-Id: Ib376ef65503c42b8f98c04af9560b7f2f5842d85
2017-06-01 22:53:17 +02:00
Translation updater bot 6303a1853a Localisation updates from https://translatewiki.net.
Change-Id: I45b7bbfa9b6387e48bdb011b2ebd7be1202764e4
2017-04-04 22:37:16 +02:00
Reedy 33f0462f22 Param docs and type hints
Change-Id: I848133a979c4e3277e0187a67c4ebcf4098e9446
2017-02-17 13:26:54 +00:00
Translation updater bot 771f2aca8d Localisation updates from https://translatewiki.net.
Change-Id: I2e62e1424b14b5ecf95e8a494c13b37d8199f82b
2017-01-01 09:53:40 +01:00
Translation updater bot 53db284886 Localisation updates from https://translatewiki.net.
Change-Id: Idd11f71a0292a2a949b1b5c6988d430d37c55ee2
2016-11-20 22:13:52 +01:00
Translation updater bot 34ca10b76a Localisation updates from https://translatewiki.net.
Change-Id: I6a5f83791beedfdbc4e96c0eb6d3b45bc60ba914
2016-10-29 22:39:58 +02:00
Translation updater bot 0f32ed0f23 Localisation updates from https://translatewiki.net.
Change-Id: I24a46864bd754bf1bfe85cd595d21feaf7934f15
2016-10-17 22:31:09 +02:00
Translation updater bot 5f421b2c4d Localisation updates from https://translatewiki.net.
Change-Id: I61449d21babaff77917096a5913808530bdfcd5e
2016-10-15 23:00:11 +02:00
Translation updater bot 68a2d014fd Localisation updates from https://translatewiki.net.
Change-Id: I82894052c4e02a5a3a18ce99f92c6ce11df3cabb
2016-10-10 22:26:05 +02:00
Translation updater bot c73e887089 Localisation updates from https://translatewiki.net.
Change-Id: I7cc67f11274c6eca5e94c2ca302eb1b75ca70784
2016-10-09 22:46:09 +02:00
Brad Jorsch ac97e69999 Remove pre-1.25 API compatibility code
Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: I31b96b0939d5321be31889422cfc703c9c6c2baa
2016-09-20 15:32:05 -04:00
Translation updater bot 1b5df776e3 Localisation updates from https://translatewiki.net.
Change-Id: Ifa58bcd2b7a4b67dee5918217d4efe7bde052599
2016-09-04 22:27:30 +02:00
Translation updater bot 87dd029422 Localisation updates from https://translatewiki.net.
Change-Id: I921a063904001b57339f61f1b2a2de3b02f94216
2016-08-29 22:34:42 +02:00
Florian Schmidt 38711ed591 Fix mime type of ReCaptchaNoCaptcha
Follow up: I0da671a546700110d789b79a3089460abd9cce3b

Change-Id: I391cc8a80bc228cd0ce55331aea2c4329a97704c
2016-08-21 15:14:57 +02:00
Translation updater bot 2a9245bb2b Localisation updates from https://translatewiki.net.
Change-Id: I7d48b52ebe6b0803dd0eb34166f742d23a70e716
2016-08-16 22:41:01 +02:00
Florian e566dcb966 Remove getForm() and replace by getFormInformation()
This commit removes SimpleCaptcha::getForm() and replaces it by its more informative
counterpart getFormInformation(), which returns an array, which provides some
more information about the form than only the html.

The information included in the array is:
 * html: The HTML of the CAPTCHA form (this is the same as what you expected from
   getForm() previously)
 * modules: ResourceLoader modules, if any, that should be added to the output of the
   page
 * modulestyles: ResourceLoader style modules, if any, that should be added to th
   output of the page
 * headitems: Head items that should be added to the output (see OutputPage::addHeadItems)

Mostly you shouldn't need to handle the response of getFormInformation() anymore, as there's
a new function, addFormToOutput(), which takes an instance of OutputPage as a first parameter
and handles the response of getFormInformation for you (adds all information to the given
OutputPage instance, if they're provided).

Bug: T141300
Depends-On: I433afd124b57526caa13a540cda48ba2b99a9bde
Change-Id: I25f344538052fc18993c43185fbd97804a7cfc81
2016-08-04 01:45:13 +00:00
Translation updater bot a94992e253 Localisation updates from https://translatewiki.net.
Change-Id: If26e3d148017245c67097dfd191fbe1cd0c5abcb
2016-07-25 22:23:07 +02:00
Translation updater bot 83a1b99c14 Localisation updates from https://translatewiki.net.
Change-Id: I4bd03abeae47f7effaf1f40657501abec22335dd
2016-06-16 22:25:56 +02:00
Translation updater bot 079fdb2991 Localisation updates from https://translatewiki.net.
Change-Id: I03d9ac806ca25b8112adc44b27d3c267d4b44fc0
2016-05-28 22:16:52 +02:00
Translation updater bot 9f650aec81 Localisation updates from https://translatewiki.net.
Change-Id: I3d38817ffc890635e37876d7ee2e16deaaf0c720
2016-05-20 22:25:58 +02:00
Translation updater bot 900940d44e Localisation updates from https://translatewiki.net.
Change-Id: I11505d7cf59a46d83eaf9c48b1ed3ae27e89ea46
2016-05-19 23:07:43 +02:00
Translation updater bot d553b17df3 Localisation updates from https://translatewiki.net.
Change-Id: I8e528e2f0dd8bceac9cbc26253aaeed893c98a19
2016-05-17 22:20:50 +02:00
Gergő Tisza f97212acbf Expose equivalent functionality for passCaptcha
passCaptcha was made protected in I0da671a546700110d789b79a3089460abd9cce3b,
but some other extensions used it, provide passCaptchaFromRequest as a
replacement.

Bug: T135477
Change-Id: I47b2e2fbe3e063cd86e8a2d6bc17ca939472dbe1
2016-05-17 18:29:43 +00:00
Gergő Tisza 3e3b91b527 Add AuthManager support for ReCaptcha, ReCaptchaNoCaptcha
Also remove references to "two words" from ReCaptcha labels.
The captcha image doesn't always contain two words.

Bug: T110302
Change-Id: I544656289480056152a1db195babb6dadf29bc71
2016-05-16 09:51:11 +00:00
Gergő Tisza 31c59374a4 Add AuthManager support to SimpleCaptcha, QuestyCaptcha, FancyCaptcha, MathCaptcha
Also update MathCaptcha so that it works with recent versions of
Math (and breaks with old ones). Also fix MathCaptcha API output,
which used to send the question in plaintext.

Bug: T110302
Change-Id: I0da671a546700110d789b79a3089460abd9cce3b
Depends-On: I8b52ec8ddf494f23941807638f149f15b5e46b0c
2016-05-16 09:50:25 +00:00
Kunal Mehta 9ea898ba2a build: Updating mediawiki/mediawiki-codesniffer to 0.7.1
Also added "composer fix" command.

Change-Id: Ibda3fd002c577c7f7c41920d67ec44fedbd27cb8
2016-05-09 16:41:17 -07:00
Translation updater bot 1568afffb2 Localisation updates from https://translatewiki.net.
Change-Id: Ic78c5a89fd710f573538821f7d1f41fe5832c7e9
2016-04-07 22:59:45 +02:00
Translation updater bot d6e6cdaa79 Localisation updates from https://translatewiki.net.
Change-Id: Ia45758637b4463d3213a11998195f0a7e5fb5fb8
2016-03-29 22:35:04 +02:00
Translation updater bot 1730dabc3a Localisation updates from https://translatewiki.net.
Change-Id: I395f7dbacb44f46005cec5f7318c176910fe00aa
2016-03-28 22:39:23 +02:00
Florian 999cbba074 Add "manifest_version": 1 to CAPTCHA modules
Needed to validate against a specific schema version.

Bug: T128330
Change-Id: I6f745057b8b17f57049ec5b565d7a882d19174c5
2016-02-28 18:20:01 +01:00
Translation updater bot 7d83457342 Localisation updates from https://translatewiki.net.
Change-Id: I3a8b2d865ceeaa9c944782686c369320bc70ee8d
2016-02-18 22:15:02 +01:00
Translation updater bot 3eaf561945 Localisation updates from https://translatewiki.net.
Change-Id: Ibbf35f24ac4c2fa2927b5120578aa65a8c024213
2016-01-27 21:39:29 +01:00