RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > API Based Plugins

For more information about the ads and why they're here, please see the FAQ

Reply
  #1  
Old 02-06-2010, 01:19 PM
Registered User
 
Join Date: Dec 2009
Posts: 12
Default New reCAPTCHA plugin

Hi, I've written a plugin that shows a reCAPTCHA box after too many failed login attempts. The failed attempts are saved in SQL and purged after a certain amount of time.

There are a few issues that haven't been ironed out yet though:
  • Only MySQL is supported. Other databases should work with a few modifications.

Fixed issues:
  • IPs aren't purged if user doesn't visit (commit 6a5d1ef).
  • Users that fail reCAPTCHA aren't allowed to login. However, the method is crude and ugly (commit 3dc5672).
  • Might conflict with the remember_me plugin (commit 9304f88 ).

I'll try to fix the problems soon.

The gzipped file: rcguard-0.1.tar.gz.

Also on GitHub: rcguard.

Comments and suggestions are welcome. This is my first plugin, so there probably are a lot of problems.

Last edited by dennylin93; 02-08-2010 at 12:23 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-07-2010, 01:52 PM
Registered User
 
Join Date: Dec 2009
Posts: 12
Default

All the issues should be fixed with this version: rcguard 0.2.0.

Last edited by dennylin93; 02-07-2010 at 01:54 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-08-2010, 07:54 AM
skaero's Avatar
Super Moderator
 
Join Date: Jun 2006
Location: USA - New Mexico
Posts: 985
Send a message via ICQ to skaero Send a message via AIM to skaero Send a message via MSN to skaero Send a message via Yahoo to skaero
Default

Nice plugin, can you post some screenshots?
__________________
SKaero.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-08-2010, 01:11 PM
Registered User
 
Join Date: Dec 2009
Posts: 12
Default

Sure, I've attached a screenshot of the login form.
Attached Images
File Type: png rcguard.png (19.8 KB, 33 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-08-2010, 03:17 PM
lacri's Avatar
Registered User
 
Join Date: Jan 2009
Location: Leipzig, Germany
Posts: 153
Send a message via ICQ to lacri
Default

great work plugin works fine !!!

many thanks
__________________
My RoundCube Mods
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 02-10-2010, 02:58 PM
lacri's Avatar
Registered User
 
Join Date: Jan 2009
Location: Leipzig, Germany
Posts: 153
Send a message via ICQ to lacri
Default

to change language in capchta
edit rcguard.js

and replace
PHP Code:
var RecaptchaOptions = {
  
theme 'white'
}; 
with
PHP Code:
var RecaptchaOptions = {
  
theme 'white',
  
lang 'de'
}; 
de for German

see here for more options
reCAPTCHA API Documentation
__________________
My RoundCube Mods
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 02-10-2010, 03:16 PM
lacri's Avatar
Registered User
 
Join Date: Jan 2009
Location: Leipzig, Germany
Posts: 153
Send a message via ICQ to lacri
Default

recaptcha dont display correct in some old Browsers IE6 IE7
to fix this edit rcguard.css and replace all with

PHP Code:
@charset "utf-8";

#rcguard {
    
margin-bottom0px;
}

#recaptcha {
    
positionrelative;

__________________
My RoundCube Mods
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 02-11-2010, 12:41 AM
Registered User
 
Join Date: Dec 2009
Posts: 12
Default

Hmm... Looks like we have a problem. The fix above doesn't work with Firefox. I'll try to find a solution that works with all browsers.

Last edited by dennylin93; 02-11-2010 at 12:45 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 02-11-2010, 02:30 PM
lacri's Avatar
Registered User
 
Join Date: Jan 2009
Location: Leipzig, Germany
Posts: 153
Send a message via ICQ to lacri
Default

in my firefox works with this
tested with FF 3.6 and 3.5 IE6, IE7 and IE8, Opera 10, and Google Chrome tested with Windows 7 and XP and FF 3.6 under linux.

which FF version you use.
__________________
My RoundCube Mods
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 02-12-2010, 01:25 AM
Registered User
 
Join Date: Dec 2009
Posts: 12
Default

I'm using Firefox 3.6 and Opera 10 under FreeBSD.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community