Hi Kevin,

> During my registration process I want to automatically login the user (in
> Zope3).

After registration, I do the login in the same BrowserPage:

from zope.app.security.interfaces import IAuthentication
from zope.app import zapi

#[...]
# Registration staff
#[...]

# get the principal obj
pau =  zapi.getUtility(IAuthentication)
principal = pau['principals'][login]
principal.id = login
# set it to the request
self.request.setPrincipal(principal)

Bye,
Nando.

-- 
http://www.nandoquintana.com/contact

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to