[Zope-dev] getSecurityManager force auth in __bobo_traverse__
kapil thangavelu
kvthan@wm.edu
Wed, 16 Oct 2002 16:38:15 -0700
On Wednesday 16 October 2002 11:07 am, Craeg K Strong wrote:
> I don't know, but this might help:
>
> http://lists.zope.org/pipermail/zope-dev/2002-October/017701.html
>
> It gives you the authenticated user, and you can call the authorization
> machinery yourself by hand from there.
after you check the password you can use this to login the user.
from AccessControl.SecurityManagement import newSecurityManager
user = udb.getUser(name).__of__(udb)
newSecurityManager(None, user)
hth,
kapil