Commit 20b96139 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix a bug in free_text question case and fix a typo.

parent f05aab2a
...@@ -66,7 +66,7 @@ portal = context.getPortalObject()\n ...@@ -66,7 +66,7 @@ portal = context.getPortalObject()\n
person_module = portal.getDefaultModule(\'Person\')\n person_module = portal.getDefaultModule(\'Person\')\n
result = person_module.searchFolder(reference=reference)\n result = person_module.searchFolder(reference=reference)\n
if len(result) != 1:\n if len(result) != 1:\n
portal_status_message = portal.Base_translateString("Can\'t find corresponding person, it\'s not possible to recovery your credentials.")\n portal_status_message = portal.Base_translateString("Can\'t find corresponding person, it\'s not possible to recover your credentials.")\n
return context.Base_redirect(\'\', keep_items = dict(portal_status_message=portal_status_message ))\n return context.Base_redirect(\'\', keep_items = dict(portal_status_message=portal_status_message ))\n
\n \n
person = result[0].getObject()\n person = result[0].getObject()\n
...@@ -82,7 +82,7 @@ keep_items = {}\n ...@@ -82,7 +82,7 @@ keep_items = {}\n
message = "Credential Recovery Created."\n message = "Credential Recovery Created."\n
dialog_id = dialog_id or "login_form"\n dialog_id = dialog_id or "login_form"\n
\n \n
if question_title and (answer == question_answer):\n if (question_title or question_free_text) and (answer == question_answer):\n
createCredentialRecovery(reference=reference,\n createCredentialRecovery(reference=reference,\n
default_credential_question_answer=default_credential_question_answer,\n default_credential_question_answer=default_credential_question_answer,\n
destination_decision=person.getRelativeUrl(),\n destination_decision=person.getRelativeUrl(),\n
......
360 361
\ No newline at end of file \ No newline at end of file
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