Commit fa0c1166 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_credential: Add preference for custom init password

parent f72165fd
...@@ -93,7 +93,8 @@ if not person.getPassword():\n ...@@ -93,7 +93,8 @@ if not person.getPassword():\n
portal_type="Credential Recovery",\n portal_type="Credential Recovery",\n
reference=login,\n reference=login,\n
destination_decision=person.getRelativeUrl(),\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 credential_recovery.submit()\n
else:\n else:\n
# system should generate a password\n # system should generate a password\n
......
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
<string>my_preferred_store_events</string> <string>my_preferred_store_events</string>
<string>my_preferred_credential_password_recovery_message_reference</string> <string>my_preferred_credential_password_recovery_message_reference</string>
<string>my_preferred_credential_username_recovery_message_reference</string> <string>my_preferred_credential_username_recovery_message_reference</string>
<string>my_preferred_credential_new_password_recovery_message_reference</string>
</list> </list>
</value> </value>
</item> </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