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
Translation updater bot
0c5f033a08
Localisation updates from https://translatewiki.net .
...
Change-Id: I5ee9a6b59ff9b73e9ba7f6cabb5f65277b7cf94e
2016-01-06 21:52:41 +01:00
Tacsipacsi
0aaacc276f
ReCaptchaNoCaptcha: Set captcha language to interface language
...
Use reCaptcha's "hl" parameter with language code from display language code.
It's tolerant to unknown codes--works as before: displays in browser language.
Bug: T122300
Change-Id: I3aac1aed12bc4b2603d225c1a386a73197f411a0
2015-12-26 23:10:23 +01:00
Translation updater bot
fd8d7acf5d
Localisation updates from https://translatewiki.net .
...
Change-Id: I3ef635a036fcb49965b724da73f451b4be09a272
2015-12-23 22:04:04 +01:00
Translation updater bot
ebbb13c3cc
Localisation updates from https://translatewiki.net .
...
Change-Id: I1176fd4612e1126602105a554ac5de743136d11e
2015-12-20 22:32:45 +01:00
Brad Jorsch
01d11b7b73
Add i18n for injected API parameters
...
Change-Id: I4a0a6c47afdd62e1c9d0b29f066d2a6d1791b52d
2015-12-18 12:53:44 -05:00
Translation updater bot
688f88849b
Localisation updates from https://translatewiki.net .
...
Change-Id: I83900391991d12e1af88aafc1517e5c4e22a7316
2015-12-13 22:16:23 +01:00
jenkins-bot
cb706b4e01
Merge "ReCaptchaNoCaptcha: Fix function call on a non-object"
2015-11-06 15:11:55 +00:00
Southparkfan
51c3903005
ReCaptchaNoCaptcha: Fix function call on a non-object
...
$info is a Status object, but the function logCheckError called
getErrorsArray() on $status (which is an undefined variable), thus it threw an
exception.
Change-Id: I93a52f31134a849e064945b653a13392b2f92d08
2015-11-06 16:05:54 +01:00
Paladox
30490fba52
Add php code sniffer
...
Change-Id: I298b8b936a2b86deea75c302d88a7391cdb221c9
2015-10-28 21:46:29 +00:00
Translation updater bot
82dac8605d
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaa6b8fdedc3a4163faf0f46875f82f3ce0d5b02a
2015-10-22 21:59:14 +02:00
Translation updater bot
dd15a63695
Localisation updates from https://translatewiki.net .
...
Change-Id: I5278b921e9a12c29c1c8c9d59b77dcf7f4492aa5
2015-10-18 21:54:01 +02:00
Translation updater bot
b1f0eb85e8
Localisation updates from https://translatewiki.net .
...
Change-Id: Ife0442aae421b2e0d5cacdf8c9cdee008fdddd05
2015-10-14 21:51:16 +02:00
Southparkfan
79f9c4ecb8
ReCaptchaNoCaptcha: Fix undefined function call to logStatusError()
...
It seems that logCheckError() works fine for logging errors, so
I changed any logStatusError() calls into logCheckError() ones.
Change-Id: I4dc6fe0c7ddc10f388f43caa928fefce1a0dac3a
2015-10-14 13:03:31 +00:00
Paladox
4307f1ec19
Add some Jenkins tests
...
Add support for composer phplint and npm jshint, jsonlint
and banana-checker.
Change-Id: If509fdb96f35cdd252b6c53ece8a568b4a614926
2015-10-14 11:52:19 +01:00
Siebrand Mazeland
8c3fa371e4
Update indentation to use tabs
...
Change-Id: Ica5d454562dc7b6b582f6878edc5ca4ddb7c2837
2015-10-12 09:16:22 +02:00
Florianschmidtwelzow
443bfac8a8
Add a way to use different tab indexes for CAPTCHA input form
...
And use it for UsercreateTemplate.
Bug: T113432
Change-Id: I56a618f2132fbcf3fea1a3ce6a409ce90709e849
2015-09-27 01:29:18 +02:00
Translation updater bot
ffd7692884
Localisation updates from https://translatewiki.net .
...
Change-Id: I1df83412d525b18d93e15d9be816f5fb77559514
2015-08-26 21:45:20 +02:00
Translation updater bot
d5a93c49f1
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie5be184f32407d1df1e99c3cb872a91205b34a28
2015-08-25 21:56:48 +02:00
Translation updater bot
fd4147402f
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic19eba365e5b481f469e4f50cffcffd67ef57107
2015-08-05 22:34:07 +02:00
Translation updater bot
e253c138f1
Localisation updates from https://translatewiki.net .
...
Change-Id: I4d1c81fc7daa34fce17849b6709efcc963b29a0d
2015-07-16 21:10:51 +02:00
Translation updater bot
c0e8f08cbf
Localisation updates from https://translatewiki.net .
...
Change-Id: I3475954d4913b81682c63495d20c185448e6d72e
2015-07-14 21:59:49 +02:00
Translation updater bot
b92b7e912a
Localisation updates from https://translatewiki.net .
...
Change-Id: I595e42c40c5b43743cb49874029be45b0f69878e
2015-07-09 22:01:08 +02:00
Translation updater bot
b284fb5599
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib77669a3cc5dd742852d251ad3909271ce7a0f6a
2015-07-07 22:07:26 +02:00
Translation updater bot
67345bac18
Localisation updates from https://translatewiki.net .
...
Change-Id: I25f17b1acb8884421a1b8021247b6fbb141f81e7
2015-07-06 21:44:37 +02:00
Translation updater bot
66801ffd4b
Localisation updates from https://translatewiki.net .
...
Change-Id: I2160df2473d1e543a1b5a3c91c9fdd0c3fb6a03c
2015-07-05 21:59:28 +02:00
Florianschmidtwelzow
36abbc6288
Implement support for Google reCAPTCHA 2.0 ("No captcha")
...
This change adds a new Captcha type (ReCaptchaNoCaptcha) that uses
Google reCAPTCHA 2.0.
See more:
- https://www.google.com/recaptcha/intro/
- https://developers.google.com/recaptcha/docs/display
- https://developers.google.com/recaptcha/docs/faq
- http://googleonlinesecurity.blogspot.com/2014/12/are-you-robot-introducing-no-captcha.html
Bug: T84918
Change-Id: I5908fd2716786237adb01a403d5bd1e22d95c563
2015-06-27 03:00:11 +02:00