Jump to content

Previous Customers get locked out, if they try to register!


PsychoTherapist
 Share

Recommended Posts

There is a serious issue with the Register page of Cubecart.

 

If a previous guest customer registers at checkout, all is fine.  However, if they instead try to register using the "Register" link at the top of the page, they receive the following error:

 

 

The following errors were detected:

  •  
  • Invalid Username and/or Password

     

If they now try to order again as a Guest Customer, they get the following error and are completely unable to place any further orders:

 

 

The following errors were detected:

  • That email address is already being used.

 

 

If they try to Register again, they receive the same "already being used" error, as above.

 

The only way they can unlock their accounts and actually place any further orders after this has occurred, is to use the Recover Password function.

 

This is a pretty major bug, that could potentially turn away customers.  I see also that it has been posted on this forum previously here: '?do=embed' frameborder='0' data-embedContent>>

 

BTW, this store was upgraded from version 3 and is otherwise working perfectly, besides this bug.

Link to comment
Share on other sites

This is what I did, but testing is required to make sure nothing else got broke. In /classes/user.class.php, near line 704:

Was:
if($existing[0]['type']==2) {
  $_POST['type'] = 1;
  $GLOBALS['db']->update('CubeCart_customer', $_POST, array('email' => strtolower($_POST['email'])));
  $insert = $existing[0]['customer_id'];
 
Now:
if($existing[0]['type']==2) {
  $_POST['type'] = 1;
  $_POST['new_password'] = 1;
  $GLOBALS['db']->update('CubeCart_customer', $_POST, array('email' => strtolower($_POST['email'])));
  $insert = $existing[0]['customer_id'];
Link to comment
Share on other sites

I've just tested it and it seems to be working.  Past guest customers can now use the Register page without being locked out and registration at checkout is still working fine as before.  New customers are still able to register via both methods, as before.

 

Thanks. :)


Just tested and it seems to be working.  Previous guest customers can now use the register page, without being locked out. 

 

Registration at checkout is still working fine as before and new customers can still register ok by either method.

 

Thanks. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...