Thursday 29 November 2007 9:42:29 am
You can loggin users by using the eZpublish API: http://pubsvn.ez.no/doxygen/trunk/html/classeZUser.html
you have a the following static function: static loginUser ($login, $password, $authenticationMatch=false) which you can use with other functions such as:
$user = eZUser::getByEmail($email);
or $user = eZUser::getByName($login);
This way you will be able to force login from a number of events such as via a get, cookie or Session event. If you match this with the SingleSignOnArray[]= setting from the site.ini file, you can force login for users with cookie events, and interface your login event with other applications or partner websites. But if you use the forceLogin or cookie methods make sure you check the security issues involved.
|