Zen Cart Logo
Forums / All Other Contributions/Addons / After adding CAPTCHA, Account Registration Loses Password Not Saved

After adding CAPTCHA, Account Registration Loses Password Not Saved

Locked

Views: 2,070

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Sep 2009, 1:18 PM
#1
gobbledeg00k avatar

gobbledeg00k

New Zenner

Join Date:
Sep 2009
Posts:
3
Plugin Contributions:
0

After adding CAPTCHA, Account Registration Loses Password Not Saved

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.

/**
 * 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
 */

Here is the odd behavior:

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!

15 Sep 2009, 5:01 PM
#2
gobbledeg00k avatar

gobbledeg00k

New Zenner

Join Date:
Sep 2009
Posts:
3
Plugin Contributions:
0

Re: After adding CAPTCHA, Account Registration Loses Password Not Saved

OK, if nobody has a handle on that, can anybody tell me where among the scripts to look to see where the actual insert statement for the customers_password field in table customers is intended to take place, because obviously something had gone dramatically wrong with that process since adding the captcha.php. I am not saying the CAPTCHA script is breaking stuff, I am just saying the halt in passwords being recorded is temporally related to use of CAPTCHA technology, maybe not even this script.

15 Jun 2010, 3:16 PM
#3
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: After adding CAPTCHA, Account Registration Loses Password Not Saved

hey i have a question regarding this:

Where do I put the captcha.php file? I haven't encountered that problem yet....

Thanks