[Erp5-report] r45680 fx.algrain - in /erp5/trunk/bt5/erp5_credential: SkinTemplateItem/port...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 26 10:38:33 CEST 2011
Author: fx.algrain
Date: Tue Apr 26 10:38:32 2011
New Revision: 45680
URL: http://svn.erp5.org?rev=45680&view=rev
Log:
Try to use notication message to use password recovery.
Modified:
erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml
erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
erp5/trunk/bt5/erp5_credential/bt/revision
Modified: erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml?rev=45680&r1=45679&r2=45680&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRecovery_sendPasswordResetLink.xml [utf8] Tue Apr 26 10:38:32 2011
@@ -53,12 +53,18 @@
<value> <string>"""\n
send the password reset link by mail\n
"""\n
+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
+ context.getLanguage())\n
\n
-portal = context.getPortalObject()\n
context.REQUEST.set(\'came_from\', context.getUrlString())\n
-portal.portal_password.mailPasswordResetRequest(user_login=reference, REQUEST=context.REQUEST)\n
+\n
+portal.portal_password.mailPasswordResetRequest(user_login=reference, \n
+ REQUEST=context.REQUEST,\n
+ notification_message = notification_message)\n
</string> </value>
</item>
<item>
Modified: erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml?rev=45680&r1=45679&r2=45680&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml [utf8] Tue Apr 26 10:38:32 2011
@@ -69,7 +69,8 @@ credential_recovery = module.newContent(
\t\tportal_type="Credential Recovery",\n
reference=reference,\n
default_credential_question_answer=default_credential_question_answer,\n
- destination_decision=person.getRelativeUrl())\n
+ destination_decision=person.getRelativeUrl(),\n
+ language=portal.Localizer.get_selected_language())\n
credential_recovery.submit()\n
\n
portal_status_message = context.Base_translateString("Credential Recovery Created.")\n
Modified: erp5/trunk/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/bt/revision?rev=45680&r1=45679&r2=45680&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/bt/revision [utf8] Tue Apr 26 10:38:32 2011
@@ -1 +1 @@
-327
\ No newline at end of file
+328
\ No newline at end of file
More information about the Erp5-report
mailing list