I'm using the standard users/login and users/register for normal 
operations; however, I want to include these functions in a checkout 
function. For the login, I've read up on auth.login but for the 
registration portion I have no idea where to look.

I have defined checkout.html with a return(form=auth.login(), order=order). 
I have created a form in the view with an action {{=auth.login}}. It seems 
this is what I need? My one question (since this is in dev I can't test the 
checkout functionality yet) is whether this form is going to interfere with 
the second form in the view that submits the order. Since both actions are 
different, I don't think so but a) I don't even know if my login form 
action is correct and b) I don't know if the return(form=auth.login) is 
going to hijack the second form and treat it like a login form as well.

My plan for the second part(registration), is just to check if the user is 
logged in and if not create a new user based on the information given. I'm 
already asking for all the information I need to create an account, I just 
want the form to submit the order, and then create a user at the same time. 
Anything out there that can help? Maybe some documentation or tutorial or 
something? 

Also, can someone point me to the standard fields for auth.users? I would 
like to auto-insert values like {{=auth.email}} or {{=auth.firstname}} in 
my fields for logged in users.

-- 



Reply via email to