On ne sait jamais ce que le hasard nous réserve :-D.
[Plinn.git] / skins / control / reset_password_control.py
1 ##parameters=uuid='', password='', confirm='', **kw
2 from Products.CMFCore.utils import getUtilityByInterfaceName
3 rtool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IRegistrationTool')
4
5 msg = rtool.resetPassword(uuid, password, confirm)
6 if msg :
7 return context.setStatus(False, msg)
8 else :
9 return True