Commit d46dce89 authored by Rafael Monnerat's avatar Rafael Monnerat

subscription_request: search emails with exact match

See merge request !513
parents 6f54cc79 4cbad19d
......@@ -49,7 +49,7 @@ def SubscriptionRequest_searchExistingUserByEmail(self, email, REQUEST=None):
erp5_login_list = portal.portal_catalog.unrestrictedSearchResults(
portal_type="ERP5 Login",
reference=email,
reference={'query': email, 'key': 'ExactMatch'},
validation_state="validated")
if len(erp5_login_list):
......@@ -58,7 +58,7 @@ def SubscriptionRequest_searchExistingUserByEmail(self, email, REQUEST=None):
# Already has login with this.
person_list = portal.portal_catalog.unrestrictedSearchResults(
portal_type="Person",
default_email_text=email,
default_email_text={'query': email, 'key': 'ExactMatch'},
validation_state="validated")
if len(person_list):
......
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