Commit bcf9a10b authored by Jérome Perrin's avatar Jérome Perrin

erp5_credential: search login with exact match

parent 0d9a9314
......@@ -60,7 +60,7 @@ if choice == "password":\n
request = context.REQUEST\n
request.set(\'reference\', reference)\n
portal_preferences = context.portal_preferences\n
result = person_module.searchFolder(reference=reference)\n
result = person_module.searchFolder(reference={\'query\': reference, \'key\': \'ExactMatch\'})\n
if len(result) != 1:\n
portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
return context.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n
......
430
\ No newline at end of file
431
\ 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