[Zope] terrible kludge to set password
Kyler B. Laird
laird@ecn.purdue.edu
Mon, 01 Jan 2001 16:29:24 EST
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