Quote from: OpenGeek at Jul 31, 2008, 10:48 AM
I want to rip our the existing one and add yours to the "reference" extension library to show how you can easily extend the core with a custom solution like this. I don’t feel we need to have a Captcha solution in the core distribution, but I honestly have not looked into it yet to make sure the appropriate integration points are abstracted appropriately.
I’ve got my version working in the manager now, athough it would be a stretch to call it re-factored. I’ve just added the mathstring option and the option to send veriword your own CAPTCHA word.
I’ve looked at the possibility of taking out the current CAPTCHA and making this a package, but it doesn’t look promising. Installing the package would add 2 system setting keys (no problem, I assume), then replace login.php, captcha.php, the smarty login.tpl, and two lexicon files (or adding a new captcha lexicon file). It seems these file changes would be overwritten on upgrade.
Maybe I’m missing some authentification hook.
BTW, the current implementation is somewhat scattered. The CAPTCHA messages are in two different files and there is an "if (captcha)" conditional in both login.php and the smarty tpl file and both login.php and login.tpl contain HTML. If we don’t pull CAPTHA out of the core, at least these should be fixed.
I’m not sure what to do next.