I was unsuccessful at finding any examples of
changing a user's password from DTML, but I
did see a few requests for such functionality.
I bumped around quite awhile today trying to
figure out how to do it.  I didn't come up
with a good way, but I did find something that
works.

So, although it's terribly ugly, I thought I'd
throw my example out.  Perhaps it'll save
someone else some time.
        <dtml-call "REQUEST.set('name', 'k.laird.1')">
        <dtml-call "REQUEST.set('password', '5678')">
        <dtml-call "REQUEST.set('confirm', '5678')">
        <dtml-call "REQUEST.set('roles', ['CRUP_admin'])">
        <dtml-call "acl_users.manage_users('Change', REQUEST, RESPONSE)">

--kyler

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to