[Zope-dev] login prompt after letting user change his password.

Clark OBrien COBrien@isis-server.vuse.vanderbilt.edu
Thu, 25 Oct 2001 12:09:51 -0500


Hi all
I have written some code to alow a user to change his password (below)

The problem is that after executing this code  the login dialog pops up.

The login requires the user to enter his NEW password.


container.REQUEST.set('roles',request.AUTHENTICATED_USER.getRoles())
container.REQUEST.set('domains',request.AUTHENTICATED_USER.getDomains())
container.REQUEST.set('name',request.AUTHENTICATED_USER.getUserName())
container.REQUEST.set('password',request['new_password'])
container.REQUEST.set('confirm',request['new_password_confirm'])
context.acl_users.manage_users('Change',container.REQUEST)
context.REQUEST.RESPONSE.redirect("changepwd?status=ok")