[Zope] Changing Roles

Daniel G. Rusch drusch@globalcrossing.com
Thu, 23 Mar 2000 10:00:18 -0600


Hey all,

I ran into this problem awhile ago. My solution was a bit of a hack and
has obvious security concerns but here it is:

<dtml-call "REQUEST.set('name', login_name)">
<dtml-call "REQUEST.set('password',
GetPassword(acl_users.getUser(login_name)))">
<dtml-call "REQUEST.set('confirm', password)">
<dtml-call "REQUEST.set('roles', roles)">
<dtml-call "acl_users.manage_users(submit='Change', REQUEST=REQUEST)">




Code for GetPassword():
return login_name._getPassword()