Commit 94f2c311 authored by Aurel's avatar Aurel

retrieve password notification message reference from preference

parent 1bc2aa06
......@@ -57,7 +57,10 @@ portal = context.getPortalObject()\n
\n
person = context.getDestinationDecisionValue(portal_type="Person")\n
reference = person.getReference()\n
notification_message = portal.NotificationTool_getDocumentValue("crendential_recovery-reset-link",\n
message_reference = portal.portal_preferences.getPreferredCredentialPasswordRecoveryMessageReference()\n
if message_reference is None:\n
raise ValueError, "Preference not configured"\n
notification_message = portal.NotificationTool_getDocumentValue(message_reference,\n
context.getLanguage())\n
\n
context.REQUEST.set(\'came_from\', context.getUrlString())\n
......
393
\ No newline at end of file
394
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment