[Zope] User changing their own password via External Method with
Cookie Crumbler
Jens Vagelpohl
jens at dataflake.org
Mon Mar 28 16:23:03 EST 2005
On Mar 28, 2005, at 21:19, Dave Cinege wrote:
> After I installed Cookie Crumbler my external method for a user to
> change
> their own password will no longer work. I realize I've got a chicken
> and egg
> issue with the cookie needing to be updated at the same time as the
> change...or something. : P
>
> How do I fix this ?
>
> I've been using code that looks something like this:
>
> def UserEditFunc (self):
> reqd = dict(self.REQUEST)
>
> self.acl_users.userFolderEditUser(reqd['username'],reqd['password'],'',
> '')
Take a look at the CookieCrumbler code, there is a method that will
update the cookie for you:
credentialsChanged(self, user, name, pw)
jens
More information about the Zope
mailing list