Commit 1832ca00 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_core: Only search for ERP5 Login

See merge request nexedi/erp5!1814
parents 2317230a 8c025549
......@@ -142,6 +142,7 @@ class PasswordTool(BaseTool):
# check user exists, and have an email
user_path_set = {x['path'] for x in self.getPortalObject().acl_users.searchUsers(
login=user_login,
login_portal_type='ERP5 Login',
exact_match=True,
) if 'path' in x}
if len(user_path_set) == 0:
......@@ -253,6 +254,7 @@ class PasswordTool(BaseTool):
return []
user_dict_list = portal.acl_users.searchUsers(
login=register_user_login,
login_portal_type='ERP5 Login',
exact_match=True,
)
if user_dict_list:
......@@ -300,6 +302,7 @@ class PasswordTool(BaseTool):
portal = self.getPortalObject()
user_dict, = portal.acl_users.searchUsers(
login=register_user_login,
login_portal_type='ERP5 Login',
exact_match=True,
)
login_dict, = user_dict['login_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