69a34c3f4fa03daa619135d6b17739794d4b6bfc
[Plinn.git] / skins / generic / request_password_reset_form.py
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')
6
7 if requestReset :
8 uuid = rtool.requestPasswordReset(userid)
9 context.setStatus(True, _('request for resetting password sent'))
10 return 'yeah !'
11
12 options={}
13 target = '%s/request_password_reset_form' % utool()
14 options['action'] = target
15
16 return context.request_password_reset_template(**options)