I found the solution:
I added the following line: activate User ($ user, 1, 'UserRegistration', false);
But now I have another proble:
CB use API I'm using is not within the domain of the web, and email activation comes with the domain from which the code is located.
Can you solve?
thanks