Commit graph

14 commits

Author SHA1 Message Date
EBernhardson 804903b4a7 Revert "Getting rid of some globals"
This broke account creation for apps.

 <   anomie>bd808: Very likely $wgRequest !==
               $loginForm->getContext()->getRequest() in SimpleCaptcha::addNewAccountApiForm(), so when it
               uses $wgRequest to check later on it doesn't see the parameter renames made by that hook
               function.

This reverts commit 23c6f2f04f.

Change-Id: I793e7a987944d14c3be0eba4c4361793183a62b9
2015-04-02 16:36:13 -07:00
Florianschmidtwelzow 23c6f2f04f Getting rid of some globals
wgUser/wgOut/wgRequest shouldn't be used, if there is a context available.

Change-Id: Ife4fca8ecf03780046634f5871192f6380291c10
2015-03-10 09:52:45 +01:00
jenkins-bot ebc4667a1b Merge "Improved the QuestyCaptcha syntax for setting questions and answers" 2014-12-30 18:14:50 +00:00
Luis Felipe Schenone 614c626964 Improved the QuestyCaptcha syntax for setting questions and answers
Simple change to one method, QuestyCaptcha::getCaptcha, that allows to
set questions and answers like so:

$wgCaptchaQuestions = array(
	'The capital of England?' => 'London',
	'The capital of France?' => 'Paris',
	'The capital of Spain?' => 'Madrid',
);

Backwards compatibility with the previous syntax has been preserved.

Change-Id: Ife16bfb4c63864f8bc9117dad15136288564e2b0
2014-09-26 17:25:09 +08:00
jdlrobson 5d6f684da3 Make captchas use mw-ui-input when available
Change-Id: I44453a2cc238721468565403b9625039cb8742ef
2014-07-29 18:40:56 -07:00
Matthew Flaschen 8765b88fbf Disable autocomplete for Simple, Fancy, Math, and Questy.
Bug: 48030
Change-Id: Id0eed4797ab5649fc5bb965b5d94fba21f120d9f
2013-05-02 21:09:51 -04:00
Siebrand Mazeland 55c17aa367 Maintenance for ConfirmEdit extension.
* Removed unused globals and local variables.
* Use Message class.
* Remove PHP4-ism from recaptchalib.php.
* Remove superfluous newlines.
* Add missing semi-colon in ext.confirmedit.asirra.js.
* Fix up some documentation.

Change-Id: I8916003d083a8c00aeabc9e485cc9a50030f0982
2012-08-16 23:21:50 +02:00
Mark A. Hershberger d40e00b39a apply patch from Bug 32501 - [QuestyCaptcha] Help page is broken
Fixes:

  When trying to open the help page, the following messages appear:
<pre>
Notice: Undefined property: QuestyCaptcha::$storage in
/.../extensions/ConfirmEdit/QuestyCaptcha.class.php on line 68

Fatal error: Call to a member function cookiesNeeded() on a non-object in
/.../extensions/ConfirmEdit/QuestyCaptcha.class.php on line 68
</pre>

Might need to be merged so Extension Distributor can use it?
2011-12-01 16:24:49 +00:00
Platonides 1eb6f82d00 Add required attribute to captcha answers per
http://www.mediawiki.org/wiki/Extension_talk:ConfirmEdit#HTML5_required_input_8261
This won't have any real-world effect until r67283 
HTML5 form validation is enabled again.
2011-10-21 14:59:16 +00:00
Platonides 9ff87015f6 Allow several answers in QuestyCaptcha, per request at http://permalink.gmane.org/gmane.org.wikimedia.mediawiki/36769 2011-02-08 23:39:17 +00:00
Sam Reed 89349038f9 Remove some more unused globals/variables 2010-07-26 21:42:17 +00:00
Alexandre Emsenhuber f6b61b4dd6 Big changes to extensions' documentation:
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Siebrand Mazeland 4a6c4e2bcf * Update messages for QuestyCaptcha
* stylize.php and trailing whitespace removed for ConfirmEdit
* add support for QuestyCaptcha to Translate
* svn execute bits removed
2009-07-19 15:13:01 +00:00
Charles Melbye 283ec4908c Moving QuestyCaptcha to ConfirmEdit 2009-07-19 04:15:55 +00:00