Brian Wolff has uploaded a new change for review.

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

Change subject: Use global cache keys bad login rate limitting captcha trigger
......................................................................

Use global cache keys bad login rate limitting captcha trigger

If you are running multiple wikis, you probably want the rate limit
on one wiki to apply to all wikis

Bug: T126685
Change-Id: If5533f222eae9dc540b7c79606d7e7ce613f4e13
---
M SimpleCaptcha/Captcha.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmEdit 
refs/changes/63/270663/1

diff --git a/SimpleCaptcha/Captcha.php b/SimpleCaptcha/Captcha.php
index 0aeb152..dc97dcf 100755
--- a/SimpleCaptcha/Captcha.php
+++ b/SimpleCaptcha/Captcha.php
@@ -264,7 +264,7 @@
        function badLoginKey() {
                global $wgRequest;
                $ip = $wgRequest->getIP();
-               return wfMemcKey( 'captcha', 'badlogin', 'ip', $ip );
+               return wfGlobalCacheKey( 'captcha', 'badlogin', 'ip', $ip );
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If5533f222eae9dc540b7c79606d7e7ce613f4e13
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmEdit
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <[email protected]>

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

Reply via email to