spree/spree — Issue #890: password reset can cause checkout validation error
Author: rounders
Created: 2011-12-19 22:31:53+00:00
State: open

the following steps can reproduce the error. I first experienced it on Spree 0.50.x and I just confirmed that it also occurs on a clean 0.70.3 installation:

1) ensure you are not logged in
2) add some items to your cart
3) go to login page and use password reset feature
4) once you have reset your password spree logs you in automatically. When you try to checkout the cart that you started prior to login you will encounter an e-mail validation error.

Looks like this is due to the current_order not getting associated with the current_user which normally occurs when you sign-in using the login form.

I'd be happy to submit a patch if needed.

- Thanks,
Francois