8cdcdb1569a985ad39253a504d7b866c746a7871
[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 userid, msg = rtool.resetPassword(uuid, password, confirm)
6 if msg :
7 context.setStatus(False, msg)
8
9 return userid