[development] How to Log in a user
gordon at heydon.com.au
Mon Feb 27 12:00:37 UTC 2006
Take a look at logintoboggan I think this will help you be able to login
without too much trouble.
The other thing that could be done is add something to the top of the
list that will log in the user using the checkoutapi().
Coupled with logintoboggan I don't think it will be too hard to do this,
without changing core of Drupal or E-Commerce.
On Mon, 2006-02-27 at 02:44 -0700, stuff at trackingsolutions.ca wrote:
> I am hacking the user.module to integrate better with my hacked version of the
> ecommerce module :).
> I would like to automatically redirect the user after creating a new account
> to the next step in the shopping cart.
> I am having problems tracking down the code that will allow my new user to
> login without having to fill in a form and press the login button. I already
> have the user name and password. So I would like to preform the following:
> 1. Detect if the action came from the shopping cart. I am successfull in this
> by parsing drupal_get_ destination for cart/checkout.
> 2. I would like to automatically check the user in without their interaction.
> I need help with this one.
> 3. Automatically redirect the user to the next step in the shopping cart. I
> need some help with this one.
> Thanks for your help.
More information about the development