Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Plugin Contributions

    bug 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 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!
    Last edited by gobbledeg00k; 15 Sep 2009 at 02:21 PM. Reason: 1 typo

  2. #2
    Join Date
    Sep 2009
    Plugin Contributions

    Default 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.

  3. #3
    Join Date
    Dec 2009
    Plugin Contributions

    Default 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....




Similar Threads

  1. Replies: 6
    Last Post: 16 Jun 2013, 06:53 PM
  2. Replies: 1
    Last Post: 3 Nov 2012, 03:36 AM
  3. Adding Products in Admin Not Saved
    By games4gamers in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Jan 2010, 03:07 PM
  4. Chosen Shipping Option not being Saved after adding COWOA module?
    By donrado in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 25 Oct 2009, 10:42 PM
  5. Edit/Update Account Doesn't Work after Adding a new Account Field
    By webomat in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 Apr 2007, 04:51 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Zen-Cart, Internet Selling Services, Klamath Falls, OR