def METHOD_NAME(self):
    userid = self.request.form.get('userid')
    mtool = api.portal.get_tool('portal_membership')
    regtool = api.portal.get_tool('portal_registration')
    acl_users = api.portal.get_tool('acl_users')
    member = mtool.getMemberById(userid)
    current_roles = member.getRoles()
    if 'Manager' in current_roles and not self.is_zope_manager:
        raise Forbidden
    pw = regtool.generatePassword()
    acl_users.userFolderEditUser(
        userid, pw, current_roles, member.getDomains(), REQUEST=self.context.REQUEST)
    self.context.REQUEST.form['new_password'] = pw
    regtool.mailPassword(userid, self.context.REQUEST)