Sunday 04 July 2010 2:51:12 am
Hi Timo, On a 4.2 version, take a look at kernel/user/register.php l.199 to l.252, you'll notice it is possible to create a custom activation handler, to which all user activation-related behaviour is delegated. It should among other avoid running the following code, where user account activation takes place :
if ( eZOperationHandler::operationIsAvailable( 'user_activation' ) )
{
$operationResult = eZOperationHandler::execute( 'user',
'activation', array( 'user_id' => $userID,
'user_hash' => $hash,
'is_enabled' => false ) );
}
else
{
eZUserOperationCollection::activation( $userID, $hash, false );
} The return value of the 'verifyUser()' method in your custom handler (see how to plug it in in site.ini l.413 to 425) lets you control whether the registration email should be sent or not.
Let us know how it goes, Cheers,
--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board
eZ Publish Community on twitter: http://twitter.com/ezcommunity
t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye
|