Commit 60dd4d07 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

Conflicts:
	bt5/erp5_credential/bt/revision
parent d787b7cb
......@@ -97,7 +97,7 @@ elif choice == "username":\n
query_kw = {"email.url_string" : default_email_text}\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 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
portal_status_message = context.Base_translateString("Could not find your user account.")\n
if web_site:\n
......
433
\ No newline at end of file
436
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