Quote from: OpenGeek at Sep 07, 2009, 01:39 PM
Can you send me or point me to the code for both plugins so I can test this and see what’s going on?
You can get the Captcha plugin at the WTF.
After installing, just duplicate the plugin with a new name.
In theory, that should just show the CAPTCHA challenge twice on the login page. Instead, it trashes the login page (check in another browser

), showing the two input boxes, but no prompts and no CAPTCHA images.
I deleted the other plugin in order to log in, but it was basically like this (listening to the same system events as the CAPTCHA plugin):
<?php
switch ($modx->event->name) {
case 'OnBeforeManagerLogin': /* authenticate */
$rt = true;
$modx->event->_output = $rt;
break;
case 'OnManagerLoginFormRender': /* Ouput Prompt */
$rt = '<hr />Testing';
$modx->event->_output = $rt;
break;
}
?>