diff --git a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml index 9daf9478eb8063ab20fa7c2e08842fe801c08b67..d5f30578faebceaa5d591d2f208183075f24c6be 100644 --- a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml +++ b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml @@ -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 diff --git a/bt5/erp5_credential/bt/revision b/bt5/erp5_credential/bt/revision index cbafdca534b6a2ba9e4ac1da16571516aa607b2d..c954f9c6445cc2cbc513494716e700f2a2c3d573 100644 --- a/bt5/erp5_credential/bt/revision +++ b/bt5/erp5_credential/bt/revision @@ -1 +1 @@ -393 \ No newline at end of file +394 \ No newline at end of file