1 ##parameters=userid='', requestReset=''
2 from Products
.CMFCore
.utils
import getUtilityByInterfaceName
3 from Products
.Plinn
.utils
import Message
as _
4 utool
= getUtilityByInterfaceName('Products.CMFCore.interfaces.IURLTool')
5 rtool
= getUtilityByInterfaceName('Products.CMFCore.interfaces.IRegistrationTool')
8 uuid
= rtool
.requestPasswordReset(userid
)
9 context
.setStatus(True, _('request for resetting password sent'))
13 target
= '%s/request_password_reset_form' % utool()
14 options
['action'] = target
16 return context
.request_password_reset_template(**options
)