Create the recovery if no question else show question dialog


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45092 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64c7696e
...@@ -65,10 +65,16 @@ if len(result) != 1:\n ...@@ -65,10 +65,16 @@ if len(result) != 1:\n
return context.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n return context.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n
\n \n
person = result[0]\n person = result[0]\n
return context.Base_redirect(\'ERP5Site_newCredentialRecoveryDialog\', keep_items = \\\n #If any question, we can create directly the credential recovery\n
dict(default_credential_question_question_free_text=person.getDefaultCredentialQuestionQuestionFreeText(),\n question_free_text = person.getDefaultCredentialQuestionQuestionFreeText()\n
default_credential_question_question_title=person.getDefaultCredentialQuestionQuestionTitle(),\n question_title = person.getDefaultCredentialQuestionQuestionTitle()\n
reference=reference))\n if not (question_free_text or question_title):\n
return context.ERP5Site_newCredentialRecovery(reference=reference)\n
\n
return context.Base_redirect('ERP5Site_newCredentialRecoveryDialog', keep_items = \\\n
dict(default_credential_question_question_free_text=question_free_text,\n
default_credential_question_question_title=question_title,\n
reference=reference))\
</string> </value> </string> </value>
</item> </item>
<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