<div dir="ltr">Hello all,<br><br>&nbsp; I&#39;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&#39;m using PAS and CookieCrumbler and the code is as follows:<br>

container.acl_users.users.manage_updateUserPassword(user[&#39;id&#39;],password,password)<br><br>&nbsp; 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&#39;m using CookieCrumbler), and entering the new creds doesn&#39;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).<br>

<br>&nbsp; Here is the error that&#39;s thrown in the logs:<br><pre>Traceback (innermost last):<br>  Module ZPublisher.Publish, line 106, in publish<br>  Module ZPublisher.BaseRequest, line 468, in traverse<br>  Module ZPublisher.HTTPResponse, line 687, in unauthorized<br>

Unauthorized: &lt;strong&gt;You are not authorized to access this resource.&lt;/strong&gt;<br></pre><br>&nbsp; So basically, I can&#39;t access any protected object until I log out and log back in.<br><br>&nbsp; Anyone have any insight here? I&#39;ve been trying to read the Plone source code to figure out how they do it but I can&#39;t get their code to work... I&#39;ve been searching around for an answer to this all weekend but can&#39;t find anything :(<br>

<br>&nbsp; Thanks for the help,<br><br>- Teebes<br></div>