My test user is seeing this when attempting to log in on the checkout page, even though the password he is entering is correct (it works on user/login):
"Sorry, unrecognized username or password. Have you forgotten your password?"

Using:
Commerce Checkout Login (link is external) 7.x-1.x-dev (2013-Sep-30)
Commerce Kickstart (commerce_kickstart-7.x-2.19)
Drupal 7.32

Comments

jlea9378’s picture

I did some simple debugging using dprint_r and print statements and I've confirmed that the correct values are being passed into the user_authenticate function. I'm pretty sure that the problem must be that I'm using Bakery, and that this Commerce site is a slave site. I've created an issue over on the Bakery issue board to try to get some assistance with resolving this problem. I guess this module isn't currently compatible with Bakery? Hopefully we can fix that!

#2362719: Drupal Commerce Checkout Login not working

legolasbo’s picture

You could give the patch in #2009986: Add capability to require login for existing and new users a go. It is basically a complete rewrite of the module and might solve your problems.

jlea9378’s picture

I gave the latest dev release a try with the patch that you mentioned, but it doesn't work.

I had varying experiences during the checkout process when it prompts for the email address in the Account information section:
1st try: Somehow I got logged in without it prompting me for a password. But then I got subsequently logged out and a message was logged that said Bakery - "Logging out the user with the bad cookie."
2nd try: MS Edge provided the suggestion for the email address so I let it auto-fill the field with the form suggestion. Unfortunately this resulted in a message that appeared that said "Please enter an email address" or "You must enter an e-mail address.". Apparently browser auto-fill/form suggestions aren't supported.
3rd try: I manually typed the email address. I was prompted for the password and I typed in the correct password. However, it gave me this message: There is already an account registered to yukilear@paradisent.com. Please enter your password to continue checkout. (which I already did)
4th try: I typed the password again and this time it said: Sorry, unrecognized username or password. Have you forgotten your password?

It looks like the module isn't compatible with Bakery.

legolasbo’s picture

I've been granted commit rights and I am currently rewriting the module for a 2.x branch which will more closely follow Drupal's best practices and will have test coverage. I'm not familiar with bakery (yet), but I am willing to look into bakery support if it is not working out of the box in the 2.x branch.

jlea9378’s picture

Thanks!

jlea9378’s picture

Title: Sorry, unrecognized username or password. Have you forgotten your password? » Make Commerce Checkout Login work with Bakery
Category: Support request » Feature request

Changed issue to feature request.

jlea9378’s picture

legolasbo, FYI I sent you a private message/email a couple of days ago. Just wanted to make sure you got it.

legolasbo’s picture

I guess I've missed it, and can't find it anywhere. I'll send you a PM so u can reply.

legolasbo’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

Any new development will be done against the 2.x branch.