<div dir="ltr">credentialsChanged did the trick! thanks so much... and you're right, it was quite obvious (especially now that I see it!)<br><br>Thanks again,<br><br>- Teebes<br><br><div class="gmail_quote">On Mon, Oct 6, 2008 at 1:39 PM, Sascha Welter <span dir="ltr"><zopelist@betabug.ch></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">(Sun, Oct 05, 2008 at 09:48:20PM -0400) Thibaud Morel l'Horset wrote/schrieb/egrapse:<br>
<div class="Ih2E3d">> I'm trying to write a piece of code that just changes the password of a<br>
> user as they are logged in. This is in a Script(Python). I'm using PAS and<br>
> CookieCrumbler and the code is as follows:<br>
> container.acl_users.users.manage_updateUserPassword(user['id'],password,password)<br>
><br>
> This does work and change the password, however what happens then is<br>
> anytime I try to access a resource that I could view prior to changing the<br>
> password, I get a basic pop-up auth login prompt (even though I'm using<br>
> CookieCrumbler), and entering the new creds doesn't work. If I logout<br>
> through the login/logout link and log back in with the web form, everything<br>
> is fine (and the new creds do work then).<br>
<br>
</div>AFAIK this case is documented in the CC docs, also it's quite obvious<br>
from the CookieCrumbler API: You need to call its credentialsChanged<br>
method.<br>
<br>
Regards,<br>
<font color="#888888"><br>
Sascha<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
** No cross posts or HTML encoding! **<br>
(Related lists -<br>
<a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
</div></div></blockquote></div><br></div>