(Sun, Oct 05, 2008 at 09:48:20PM -0400) Thibaud Morel l'Horset 
>   I'm trying to write a piece of code that just changes the password of a
> user as they are logged in. This is in a Script(Python). I'm using PAS and
> CookieCrumbler and the code is as follows:
> container.acl_users.users.manage_updateUserPassword(user['id'],password,password)
>   This does work and change the password, however what happens then is
> anytime I try to access a resource that I could view prior to changing the
> password, I get a basic pop-up auth login prompt (even though I'm using
> CookieCrumbler), and entering the new creds doesn't work. If I logout
> through the login/logout link and log back in with the web form, everything
> is fine (and the new creds do work then).

AFAIK this case is documented in the CC docs, also it's quite obvious
from the CookieCrumbler API: You need to call its credentialsChanged



Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to