Commit 903e404c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_credential: Add preference for custom init password

parent c3a980f4
......@@ -101,7 +101,8 @@ if not login.hasPassword():\n
portal_type="Credential Recovery",\n
reference=reference,\n
destination_decision=person.getRelativeUrl(),\n
language=portal.Localizer.get_selected_language())\n
language=portal.Localizer.get_selected_language(),\n
document_reference=portal_preferences.getPreferredCredentialNewPasswordRecoveryMessageReference())\n
credential_recovery.submit()\n
else:\n
# system should generate a password\n
......
......@@ -118,6 +118,7 @@
<string>my_preferred_store_events</string>
<string>my_preferred_credential_password_recovery_message_reference</string>
<string>my_preferred_credential_username_recovery_message_reference</string>
<string>my_preferred_credential_new_password_recovery_message_reference</string>
</list>
</value>
</item>
......
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