Re: Zope digest, Vol 1 #1305 - 49 msgs
There is no method to get the users' password by default for security reasons. If you do need to get it, you can do so with wither an External method or a base-class method. The basic syntax is: user = self.acl_users.getUser(user_id) password = user.__ It's stored that way because things beginning with an underscore can't be accessed directly from DTML. If you DO have a method such as this one, be careful to require that the user calling it is the one whose password is requested. zope-request@zope.org said:
Thanks but this did not work either - is GetPassword a built in Zope method or one that your have created yourself??
From: Daniel Rusch <drusch@globalcrossing.com> To: Samantha Stansbie <s_stansbie@hotmail.com> CC: zope@zope.org Subject: Re: [Zope] ---> CAN ANYONE PLEASE HELP?? (DTML QUESTION) <---- Date: Wed, 04 Apr 2001 15:37:13 -0500
This is how I change (edit a user) try this except of course change the 'Change' to 'Delete'
Dan
<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)"> ^^^^ This needs to be 'Delete'
participants (1)
-
David Shaw