[Zope-CMF] Changing Other user's password

Stefan H. Holek stefan at epy.co.at
Thu May 6 07:18:22 EDT 2004


self.acl_users.userFolderEditUser()


On Wed, 5 May 2004, Ramon Aseniero wrote:

> Hi All,
>
> How do I programmatically change the password of other users (not the
> current user). I tried the code below but does not work, instead it
> changed the password of the current loggin user.
>
>
> #username, password and domain are input parameter  to the script
> mt = context.portal_membership
> member = context.portal_membership.getMemberById(id=username)
> mt.setPassword(password, domains)
> mt.credentialsChanged(password)
>
> Thanks,
> Ramon
>




More information about the Zope-CMF mailing list