changing passwd, api
I have a change passwd form in a python product. Standard issue stuff: the user types his old passwd in and the new passwd twice, and if all is hunky-dory I call aclFolder._doChangeUser(authUserName, REQUEST['newpasswd'], roles, domains='') Problem is, they are redirected to a page that requires authentication and they get prompted for authentication with their new passwd since their old passwd has been changed. Is there anything I can call or do to handle this step for them so they don't have to enter their passwd yet again? Thanks, John Hunter zope 2.7
Am Freitag, 9. Juli 2004 21:11 schrieb John Hunter:
Problem is, they are redirected to a page that requires authentication and they get prompted for authentication with their new passwd since their old passwd has been changed.
Is there anything I can call or do to handle this step for them so they don't have to enter their passwd yet again?
Seems as if there was no reply...try something like this: from AccessControl import getSecurityManager user = getSecurityManager().getUser() if hasattr(user, 'credentialsChanged'): user.credentialsChanged(new_password) if hasattr(user, 'cacheClear'): user.cacheClear() Hope it helps, Sascha
participants (2)
-
John Hunter -
Sascha Ottolski