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

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

 



On Thu, Mar 17, 2016 at 05:48:39PM +0000, Patrick Uiterwijk wrote:
> 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;

Looks fine to me and easy enough to revert if needed.

+1

Pierre

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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