To try to get a handle on spam, we chose the following CAPTCHA product for its ease of installation. 2 others required more file edits and databasing, and in the end they did not work as desired.
Here is the odd behavior:Code:/** * Captcha Module * * Customized by: Mohnish Ghodekar [email protected] to: * - implement capctha system for registration form * - Shows security code on customer registration form * * @package modules * @copyright Copyright 2003-2009 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id:captcha.php 1.0 */
If on registration the user is lucky or bright enough to enter all their information correctly, including the CAPTCHA image, then the password field information is stored just fine. If they make errors that are caught by javascript validations, you get the same result upon correction: password stores fine.
If, however, the user does something not caught by javascript, like fails to select a state from the pull-down selector, or mis-types the CAPTCHA information, and then submits, the error is caught by PHP, which should otherwise be fine, except now, the password does not record in the database. The interesting fact is that the password field appears to have been populated, but after error, somehow this population is never recorded correctly in the insert statement.
I would like to customize the PHP and make blank the password field on form submission error and cause the user to need to retype the passwords if they blow it. I believe this will go a long way toward solving the issues.
Can anybody please direct me to the location in the ZenCart universe where this procedure lives? Thanks very much!



