Wednesday 18 July 2007 9:39:20 am
Hi ! I would like to do this from a specific tab in the back office : redirect to a front office siteaccess and in the meanwhile force the login to a specific user without knowing the user's password. I've tried the following code in a module :
$user =& eZUser::fetchByEmail($email);
$siteAccess = "cse";
eZSys::clearAccessPath();
eZSys::addAccessPath( $siteAccess );
$user->loginCurrent();
$Module->redirectTo("/");
But it doesn't seem to work. I'm redirected but not logged. Has someone got an idea ? Is it the wrong way ? eZMax
Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou
Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas
|