Re: [Zope] change password through script messes up session

2008-10-06 Thread Laurence Rowe
IIRC CookieCrumbler just stores the username:password on the __ac cookie. You probably need to force it to set another cookie when you change the password, or move to a different implementation like plone.session that uses signed cookies and avoids the requirement to store the password on a

Re: [Zope] change password through script messes up session

2008-10-06 Thread Giampiero Benvenuti
Hi, what I do: req=context.REQUEST context.acl_users.manage_users('Change', {'name':req['name'], 'password':req['pswd'], 'confirm':req['cpswd'], 'roles': req ['roles'], 'domains':''}) On Oct 6, 2008, at 3:48 AM, Thibaud Morel l'Horset wrote: Hello all, I'm trying to write a piece of

Re: [Zope] change password through script messes up session

2008-10-06 Thread Sascha Welter
(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:

Re: [Zope] change password through script messes up session

2008-10-06 Thread Dieter Maurer
Laurence Rowe wrote at 2008-10-6 09:52 -0400: IIRC CookieCrumbler just stores the username:password on the __ac cookie. You probably need to force it to set another cookie when you change the password, or move to a different implementation like plone.session that uses signed cookies and avoids

[Zope] change password through script messes up session

2008-10-05 Thread Thibaud Morel l'Horset
Hello all, 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