Commit graph

21 commits

Author SHA1 Message Date
Max Semenik 5b7a36a521 Clean up some phpcs problems
Change-Id: Ie956fe86184535a376d0398483ac3c853fa9127c
2018-07-12 23:13:58 +00:00
James D. Forrester 32ff18b8e3 Remove use of wgEnable[Write]API, deprecated and assumed true
Change-Id: Ia4d56399132c116d9230bcfc7014e79d0845eb9b
2018-03-22 14:44:29 -07:00
Umherirrender 1254022153 Improve some parameter docs
Change-Id: Idce2db0b489c19ec9b936cfc4ced3792e6f9711d
2017-09-24 12:14:11 +00:00
libraryupgrader 8b439b582d build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: I155f72352224f230e94950f149fba400f26cbe6c
2017-09-24 10:04:06 +00:00
Reedy 33f0462f22 Param docs and type hints
Change-Id: I848133a979c4e3277e0187a67c4ebcf4098e9446
2017-02-17 13:26:54 +00:00
Reedy a2fc069174 Use an accurate number of captchas
Change-Id: Ice434235687aa68ccf37a0219d379beb97e5a8ec
2017-02-08 18:05:49 +00:00
Aaron Schulz 0629a7866d Set the stream and buffer reset methods for the default backend
Bug: T146904
Change-Id: I93ad529d2238f52815e4abd32aa9355feda826f3
2016-09-28 22:06:58 +00: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
Raymond 181ca0ea8f Use correct message for account creation
Bug: T137963
Change-Id: I6f053e50a24b4387266c2b9e656fc2dff6c70f45
2016-06-22 11:37:57 +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
Umherirrender 97c44dee46 Fix case of Html class
Gives fatal when using $wgAutoloadAttemptLowercase = false

Change-Id: I7131f6067b8a4b07984de0c548c23fade49c9b9e
2016-02-13 22:21:04 +01:00
Paladox 30490fba52 Add php code sniffer
Change-Id: I298b8b936a2b86deea75c302d88a7391cdb221c9
2015-10-28 21:46:29 +00:00
Matthew Flaschen 843620632a Properly isolate reloading functionality, drop createacct name
There can be more then one CAPTCHA on the page in AJAX scenarios,
so it's important one reload not affect separate CAPTCHAs.

Also, drop the legacy createacct naming, except for the one
that is actually specific to CreateAccount.

The following patch must be merged immediately after this:
* Core - I8924d537cad3e39adace99fb20626247128d9bd9

Change-Id: I0e55a159efd66a73cd217d9a5e86b2bced90f57a
2015-10-22 14:08:05 -04: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
Reedy 9019692c9d Remove execute bit
Fix mixed indenting

Change-Id: I430d4210146125b2ac759925a265b9281e274dbc
2015-06-28 03:33:28 +01: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
Florian 101caf8b8f Fix non-parsed captcha help message
* Explicitly parse the help message
* Don't escape the contents of the message

Bug: T101463
Change-Id: Ie50206b8296d65eba14fd827a9a18ced550f36e5
2015-06-22 18:59:19 +00:00
Aaron Schulz 35621d18a4 Removed unused $wgExtensionAssetsPath var
Change-Id: Iad5b2cec0fb57c08f3218a45337b8d052661fb4c
2015-05-21 23:21:35 -07:00
Florian cad5bc9200 Move FancyCaptcha to its own location
3. step in preparation of ExtensionRegistration.

Bug: T88047
Change-Id: I31d8e0c01b16aafb39b4ead7acc88f2e91d33e6a
2015-05-21 16:19:38 +00:00
Renamed from FancyCaptcha.class.php (Browse further)