[Zope] changing passwd, api
Sascha Ottolski
sascha.ottolski at gallileus.de
Mon Jul 12 11:21:41 EDT 2004
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
More information about the Zope
mailing list