Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SQL/mysql.initial.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- MySQL table for rcguard

CREATE TABLE `rcguard` (
CREATE TABLE IF NOT EXISTS `rcguard` (
`ip` VARCHAR(40) NOT NULL,
`first` DATETIME NOT NULL,
`last` DATETIME NOT NULL,
Expand Down
23 changes: 0 additions & 23 deletions SQL/mysql.update.sql

This file was deleted.

32 changes: 32 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "dsoares/rcguard",
"type": "roundcube-plugin",
"description": "Roundcube plugin that enforces reCAPTCHA for users that have too many failed logins",
"keywords": ["mail","security","captcha"],
"homepage": "https://github.com/dsoares/rcguard/",
"license": "GPL-3.0+",
"authors": [
{
"name": "Denny Lin",
"email": "dennylin93@hs.ntnu.edu.tw",
"homepage": "https://github.com/dennylin93",
"role": "Developer"
}
],
"repositories": [
{
"type": "composer",
"url": "http://plugins.roundcube.net"
}
],
"require": {
"php": ">=5.2.1",
"roundcube/plugin-installer": ">=0.1.2"
},
"extra": {
"roundcube": {
"min-version": "1.0",
"sql-dir": "SQL"
}
}
}
6 changes: 5 additions & 1 deletion config.inc.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ $rcmail_config['failed_attempts'] = 5;
// Release IP after how many minutes (after last failed attempt)
$rcmail_config['expire_time'] = 30;

// reCAPTCHA API
$rcmail_config['recaptcha_api'] = 'http://www.google.com/recaptcha/api.js';
$rcmail_config['recaptcha_api_secure'] = 'https://www.google.com/recaptcha/api.js';

// Use HTTPS for reCAPTCHA
$rcmail_config['recaptcha_https'] = false;

// Keys can be obtained from http://recaptcha.net/whyrecaptcha.html
// Keys can be obtained from http://www.google.com/recaptcha/

// Public key for reCAPTCHA
$rcmail_config['recaptcha_publickey'] = '';
Expand Down
Loading