[Zope] Change Password From Product

Max M maxm@mxm.dk
Mon, 19 May 2003 08:04:27 +0200


Matt Ficken wrote:

>Is there a way that my product can change the password of an account if I'm using the product's management forms with a Manager account?
>
>I've tried calling userFolderEditUser but that doesn't seem to work. It doesn't generate an error message, but it doesn't change the password.
>  
>

Something like:


            REQUEST.set('name', '')
            REQUEST.set('roles', ['Manager']) # set to role of user
            REQUEST.set('password', new_pwd)
            REQUEST.set('confirm', new_pwd)
            self.acl_users.manage_users('Change', REQUEST)


regards Max M