<div dir="ltr">credentialsChanged did the trick! thanks so much... and you&#39;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">&lt;zopelist@betabug.ch&gt;</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&#39;Horset wrote/schrieb/egrapse:<br>

<div class="Ih2E3d">&gt; &nbsp; I&#39;m trying to write a piece of code that just changes the password of a<br>
&gt; user as they are logged in. This is in a Script(Python). I&#39;m using PAS and<br>
&gt; CookieCrumbler and the code is as follows:<br>
&gt; container.acl_users.users.manage_updateUserPassword(user[&#39;id&#39;],password,password)<br>
&gt;<br>
&gt; &nbsp; This does work and change the password, however what happens then is<br>
&gt; anytime I try to access a resource that I could view prior to changing the<br>
&gt; password, I get a basic pop-up auth login prompt (even though I&#39;m using<br>
&gt; CookieCrumbler), and entering the new creds doesn&#39;t work. If I logout<br>
&gt; through the login/logout link and log back in with the web form, everything<br>
&gt; is fine (and the new creds do work then).<br>
<br>
</div>AFAIK this case is documented in the CC docs, also it&#39;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 &nbsp;- &nbsp;<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>
** &nbsp; No cross posts or HTML encoding! &nbsp;**<br>
(Related lists -<br>
&nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&nbsp;<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>