Closed (fixed)
Project:
Commerce Checkout Login
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2011 at 06:54 UTC
Updated:
2 Feb 2012 at 06:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
BenK commentedSubscribing
Comment #2
Ceb commentedSubscribing. May try and figure out some code... but I can't guarantee I'll be helpful.
Comment #3
latulipeblanche commentedWhat is the status of this Module ?
Comment #4
ajtoelle commentedI managed to hack this module so it has the basic functionality [for my current project's needs]... Not sure if this is the right way to go about it, but thought i'd share a patch so somebody more knowledgeable can take a look.
I'm using this in tangent with the email_registration module..... don't... know... if that's.. important.. ; |
Comment #5
svendecabooterHere is a first attempt at actually implementing this:
* Attempts to login user if email address + password are provided
* Does most of the validation that Drupal core also performs (except flood login checking).
* Assigns the order to the user once login is successful
I might also implement extra functionality to optionally for the user to be logged in (although that might not really be best practice from a usability point of view), and try to find a way to make this work without Javascript.
Comment #6
m_wiking commentedI tried the patch in #5 and it works when the user write a proper password but when I put a invalid password I get this message back:
Notice: Undefined index: uid in commerce_checkout_login_checkout_form_submit() (line 94 of /Users/mattias/NetBeansProjects/mysite/sites/all/modules/commerce_checkout_login/commerce_checkout_login.module).
Comment #7
svendecabooterThanks for testing the patch.
Does it break the desired functionality or not?
If a user can't be authenticated, the form submit shouldn't be called, so it should never arrive at line 94 :(
Did this happen when you clicked the "Login now" button, or the "Continue to next step" button?
Comment #8
m_wiking commentedI pressed the login button to get this error.
Comment #9
EndEd commentedSubscribe
Comment #10
ilavir commentedsubscribe
when I've applyed the patch #5, I have an error "Notice: Undefined index: storage in commerce_checkout_login_checkout_form_submit() (line 95 of /sites/all/modules/commerce_checkout_login/commerce_checkout_login.module)." when a wrong password entered.
Comment #11
EndEd commentedHi looking at the code I think the problem is the use of #limit_validation_errors property. As I see here this makes the submition funcition run even the user input is not validated (even messages form form_set_error are not shown).
EDIT: I've change that line to
and now is working for me. Going to test a little more.
Comment #12
tscadfx commentedHey Ryan,
Is there anyway we can get a commit of this. I've done some extensive testing on it and it appears to work without problems.
Thanks
Comment #13
rszrama commentedOf the patch in #5?
Comment #14
tscadfx commentedI attached a zip file of everything in #12. It's including the patch in 5 and a couple small changes to fix the error when the password is wrong.
I've tried it out, as is in the zip, and can't get it to error under many circumstances.
Comment #15
rszrama commentedOk, I can't really review a zip like that. Any way you can turn that into a patch or set of patches?
See http://drupal.org/patch/create
Comment #16
tscadfx commentedHere's a working patch. Sorry I was being lazy.
Comment #17
tscadfx commentedLine 50 & 78 code cleanup.
Comment #18
dpolant commentedPatch #17 works.
Comment #19
deepbluesolutions commentedpatch in #17 works for me too
Comment #20
rszrama commentedAlrighty, finally got around to a review of this. Thanks to those who have worked on it so far, it provided a very easy base for me to work from. I had to make only the two changes explained below:
Committed! Thanks for the team effort. I'm not experiencing any problems in my tests, and I left the @todo in there about flood control.