login prompt after letting user change his password.
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")
Clark OBrien wrote:
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.
There is absolutely nothing wrong with that. Basic authentication works by sending the username and password with each request. You've changed the password on the server, but the client is still sending the old password, which doesn't authenticate them any longer. The user'd have to do it sometime, why not right after their password is changed? BTW, the proper forum for this type of question is the main Zope mailing list, <zope@zope.org>. -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
participants (2)
-
Behrens Matt - Grand Rapids -
Clark OBrien