Author Topic: Installing 'Captcha' plugin and configuring it to be available for login  (Read 8079 times)

Offline lgp171188

  • Newbie
  • *
  • Posts: 3
Hi all,
I am in the process of setting up 'Roundcube' webmail for my institution.For now I am setting up and configuring things on a local testbed. I wanted to have captcha challenge for login, so downloaded 'Captcha' plugin and did these:
1. Added 'captcha' to the list of plugins in config/main.inc.php
Code: [Select]
$rcmail_config['plugins'] = array('captcha');


2. Copied plugins/captcha/config/config.inc.php.dist to plugins/captcha/config/config.inc.php.

3. Edited it so that it looks like:
Code: [Select]


/* captcha plugin */

/* Captcha challenge to enter authenticated state */
$rcmail_config['captcha_auth'] = FALSE;

/* Define below pages where a check should be performed in not authenticated state */
$rcmail_config['captcha_page'] = array("contactus","recpw","register","login");

/* Textual Captcha */
$rcmail_config['captcha_onclick'] = 'riddle'; // entity_encoded or riddle

?>



But I am getting the CAPTCHA challenge when I open the webmail, this is what I get:


and on passing the CAPTCHA test, I get the login page with captcha and on refreshing the page, the CAPTCHA disappears from the login page.

I can understand that it is happening so because, the CAPTCHA challenge has already been passed. But how do I configure Captcha plugin to display CAPTCHA only in the login page and to get rid of the CAPTCHA page that turns up on opening the webmail?