定制 mediawiki/recaptcha 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mediawiki/recaptcha

Composer 安装命令:

composer require mediawiki/recaptcha

包简介

Adds Google reCaptcha integration

README 文档

README

reCaptcha extension that simply integrate google new reCaptcha into Mediawiki.

On Packagist: Latest Stable Version Latest Stable Version

Requirements

Installation

The recommended way to install the reCaptcha extension is with Composer using MediaWiki 1.22 built-in support for Composer. MediaWiki versions prior to 1.22 can use Composer via the Extension Installer extension.

Step 1

If you have previously installed Composer skip to step 2.

To install Composer:

wget http://getcomposer.org/composer.phar
Step 2

Now using Composer, install reCaptcha.

If you do not have a composer.json file yet, copy the composer-example.json file to composer.json. If you are using the ExtensionInstaller, the file to copy will be named example.json, rather than composer-example.json. When this is done, run:

php composer.phar require mediawiki/recaptcha "@dev"
Verify installation success

Go to Special:Version and see if "reCaptcha" is listed there. If it is, you successfully installed it!

Configuration

If you do not have any reCaptcha keys, you should go to reCaptcha site and receive own keys for your domain name. After this step, you should open LocalSettings.php file in your Mediawiki installation directory and add few lines to bottom of file:

$wgReCaptchaKey = 'your-recaptcha-key';
$wgReCaptchaSecret = 'your-recaptcha-secret';

Where your-recaptcha-key and your-recaptcha-secret should be replaced with your actual values.

Usage

Navigate to account creation page (you should be logged-out from your account), you should see reCaptcha there. Also, this extension will ask users to fill captcha on page edit, if user did not confirmed email address yet.

Release notes

0.1 (under development)

  • Initial release

Links

统计信息

  • 总下载量: 216
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2014-12-18