Hi,

I'm looking for a way (api/function/etc,) to sign in a user based on his email address. As part of the EC purchasing process a visitor is asked to fill out his email address, if such a visitor already has an account, I'd like to sign him in immediately, based only on his email address. Any advise on how to change the code to accomplish?

Regards,

Comments

Muslim guy’s picture

esadot’s picture

Thanks, but I'm not looking for a user interface option, I'm looking to change the code. Does the logintoboggan can help me out here?

Given only the user's email, I can find out whether the user is registered already, if he does, and at the moment he's not log-in, I'd like to be able to log the user in (and again I only have the user's email address not his password).

Regards,

Muslim guy’s picture

You mean.,,,,you want to login as the user without having to use password?

esadot’s picture

yep :)

voidberg’s picture

The devel module has a block for switching users. Maybe that can help you.
--
Alexandru Badiu
Web: http://www.voidberg.org
YM: voidberg / Skype: alex.badiu

Muslim guy’s picture

I think Masquerade also

http://drupal.org/project/masquerade