[PATCH] [wiki] Disable captcha for logged in users and on login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Patrick Uiterwijk <puiterwijk@xxxxxxxxxx>
---
 roles/mediawiki/templates/LocalSettings.php.fp.j2 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/roles/mediawiki/templates/LocalSettings.php.fp.j2 b/roles/mediawiki/templates/LocalSettings.php.fp.j2
index 91edefb..a6c10b4 100644
--- a/roles/mediawiki/templates/LocalSettings.php.fp.j2
+++ b/roles/mediawiki/templates/LocalSettings.php.fp.j2
@@ -33,6 +33,12 @@ $wgCaptchaClass = 'SimpleCaptcha';
 #$wgCaptchaDirectoryLevels = 0;
 #$wgCaptchaSecret = "{{ mediawikiCaptchaKey }}";
 
+$wgCaptchaTriggers['edit']          = true; 
+$wgCaptchaTriggers['create']        = true; 
+$wgCaptchaTriggers['addurl']        = true; 
+$wgCaptchaTriggers['createaccount'] = true;
+$wgCaptchaTriggers['badlogin']      = false;
+
 $wgRawHtml = false;
 $wgProto = "https";
 {% if env == "staging" %}
@@ -76,6 +82,7 @@ $wgMimeDetectorCommand= "file -bi";
 #$wgGroupPermissions['user' ]['delete']            = true;
 
 $wgGroupPermissions['*']['createaccount'] = false;
+$wgGroupPermissions['user']['skipcaptcha'] = true;
 
 # HNP Can't manage the interwiki right... - Nigel
 $wgGroupPermissions['*']['interwiki'] = false;
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux