[Zope-CMF] Changing Other user's password

Ramon Aseniero ramon.aseniero at tryarc.com
Wed May 5 19:41:31 EDT 2004


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-cmf/attachments/20040505/9b647959/attachment.html


More information about the Zope-CMF mailing list