[Zope] User changing their own password via External Method with
Cookie Crumbler
Florent Guillaume
fg at nuxeo.com
Thu Mar 31 19:29:59 EST 2005
Dave Cinege <dcinege-mlists at psychosis.com> wrote:
> self.login.credentialsChanged(reqd['username'],reqd['username'],reqd['password'])
>
> Both before and after
> self.acl_users.userFolderEditUser(reqd['username'],reqd['password'],'','')
That should be
self.acl_users.userFolderEditUser(username, password, roles, domains)
the domains may be [] (it's hardly ever used) but the roles have to be
the roles you give to the user.
You may want to do
username = reqd['username']
password = reqd['password']
aclu = self.acl_users
user = aclu.getUser(username)
if user is not None:
aclu.userFolderEditUser(username, password,
user.getRoles(), user.getDomains())
Florent
--
Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope
mailing list