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

fixup! credentials: only take into account persons with reference when looking up login from email

parent 60aec91d
...@@ -97,7 +97,7 @@ elif choice == "username":\n ...@@ -97,7 +97,7 @@ elif choice == "username":\n
query_kw = {"email.url_string" : default_email_text}\n query_kw = {"email.url_string" : default_email_text}\n
result = portal.portal_catalog(portal_type="Email", parent_portal_type="Person", **query_kw)\n result = portal.portal_catalog(portal_type="Email", parent_portal_type="Person", **query_kw)\n
person_list = [x.getParentValue() for x in result]\n person_list = [x.getParentValue() for x in result]\n
person_list = [x for x in result if x.getReference()] # only consider persons with a valid login\n person_list = [x for x in person_list if x.getReference()] # only consider persons with a valid login\n
if len(person_list) == 0:\n if len(person_list) == 0:\n
portal_status_message = context.Base_translateString("Could not find your user account.")\n portal_status_message = context.Base_translateString("Could not find your user account.")\n
if web_site:\n if web_site:\n
......
434 435
\ 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