[Zope] change password through script messes up session

Thibaud Morel l'Horset teebes at gmail.com
Mon Oct 6 16:18:31 EDT 2008


credentialsChanged did the trick! thanks so much... and you're right, it was
quite obvious (especially now that I see it!)

Thanks again,

- Teebes

On Mon, Oct 6, 2008 at 1:39 PM, Sascha Welter <zopelist at betabug.ch> wrote:

> (Sun, Oct 05, 2008 at 09:48:20PM -0400) Thibaud Morel l'Horset
> wrote/schrieb/egrapse:
> >   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
> method.
>
> Regards,
>
> Sascha
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20081006/7220b02c/attachment.html 


More information about the Zope mailing list